diff --git a/app/rest/auth/avatar.go b/app/rest/auth/avatar.go index f78fcb8b..67323660 100644 --- a/app/rest/auth/avatar.go +++ b/app/rest/auth/avatar.go @@ -117,7 +117,7 @@ func (p *AvatarProxy) Routes() (string, chi.Router) { }() w.Header().Set("Content-Type", "image/*") - if fi, err := fh.Stat(); err == nil { + if fi, e := fh.Stat(); e == nil { w.Header().Set("Content-Length", strconv.Itoa(int(fi.Size()))) }