Skip to content

Commit f853230

Browse files
committed
downloader: change to <missing Last-Modified header>
Signed-off-by: Norio Nomura <[email protected]>
1 parent ef0b3a0 commit f853230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/downloader/downloader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ func matchLastModified(ctx context.Context, lastModifiedPath, url string) (match
548548
defer resp.Body.Close()
549549
lmRemote = resp.Header.Get("Last-Modified")
550550
if lmRemote == "" {
551-
return false, lmCached, "<missing header>", nil
551+
return false, lmCached, "<missing Last-Modified header>", nil
552552
}
553553
lmCachedTime, errParsingCachedTime := time.Parse(http.TimeFormat, lmCached)
554554
lmRemoteTime, errParsingRemoteTime := time.Parse(http.TimeFormat, lmRemote)

0 commit comments

Comments
 (0)