Skip to content

Commit 2cd91c3

Browse files
authored
Merge pull request #2 from stydxm/correct-content-type
fix: rm_static now returns correct content type
2 parents 108d1a1 + ebd3244 commit 2cd91c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/handler/rm_static.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ func RMStaticHandler(c iris.Context) {
4949
svc.Cache.Set("static"+path, bytes, cache.DefaultExpiration)
5050

5151
c.Header("Cache-Control", "public, max-age=3600")
52-
c.ContentType("image/png")
52+
c.ContentType(resp.Header.Get("Content-Type"))
5353
c.Write(bytes)
5454
}

0 commit comments

Comments
 (0)