Skip to content

Commit d745610

Browse files
6543lafriks
andauthored
fix go1.15 lint error in modules/public/public.go (#12707)
Co-authored-by: Lauris BH <[email protected]>
1 parent f083bd7 commit d745610

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/public/public.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func (opts *Options) handle(ctx *macaron.Context, log *log.Logger, opt *Options)
159159
// Add an Expires header to the static content
160160
if opt.ExpiresAfter > 0 {
161161
ctx.Resp.Header().Set("Expires", time.Now().Add(opt.ExpiresAfter).UTC().Format(http.TimeFormat))
162-
tag := GenerateETag(fmt.Sprintf("%d", fi.Size()), fi.Name(), fi.ModTime().UTC().Format(http.TimeFormat))
162+
tag := GenerateETag(fmt.Sprint(fi.Size()), fi.Name(), fi.ModTime().UTC().Format(http.TimeFormat))
163163
ctx.Resp.Header().Set("ETag", tag)
164164
if ctx.Req.Header.Get("If-None-Match") == tag {
165165
ctx.Resp.WriteHeader(304)

0 commit comments

Comments
 (0)