Skip to content

Commit

Permalink
downloader: change to <missing Last-Modified header>
Browse files Browse the repository at this point in the history
Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
  • Loading branch information
norio-nomura committed Sep 12, 2024
1 parent ef0b3a0 commit f853230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/downloader/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ func matchLastModified(ctx context.Context, lastModifiedPath, url string) (match
defer resp.Body.Close()
lmRemote = resp.Header.Get("Last-Modified")
if lmRemote == "" {
return false, lmCached, "<missing header>", nil
return false, lmCached, "<missing Last-Modified header>", nil
}
lmCachedTime, errParsingCachedTime := time.Parse(http.TimeFormat, lmCached)
lmRemoteTime, errParsingRemoteTime := time.Parse(http.TimeFormat, lmRemote)
Expand Down

0 comments on commit f853230

Please sign in to comment.