Skip to content

Commit

Permalink
Update download.go
Browse files Browse the repository at this point in the history
  • Loading branch information
marioparaschiv committed Aug 3, 2022
1 parent d006f27 commit d6d2e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/patcher/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func getLastModified(url *string) (*time.Time, error) {
return nil, err
}

lastModified := res.Header.Get("Last-Modified")
lastModified := res.Header.Get("Date")
if lastModified == "" {
return nil, errors.New("couldn't get Last Modified header")
}
Expand Down

0 comments on commit d6d2e0b

Please sign in to comment.