knotserver/xrpc: set Content-Type when serving images
svgs were broken since they defaulted to text/plain instead ofimage/svg+xml.Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
anirudh.fi 3 months ago bfecda4a 44554dc8
··· 69 69 return 70 70 } 71 71 w.Header().Set("ETag", eTag) 72 72 + w.Header().Set("Content-Type", mimeType) 72 73 73 74 case strings.HasPrefix(mimeType, "text/"): 74 75 w.Header().Set("Cache-Control", "public, no-cache")