Skip to content

Commit 0a84f59

Browse files
committed
Make sure to set content-type header in kitspace route
1 parent 8a14b99 commit 0a84f59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

routers/kitspace.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ func Kitspace(ctx *context.Context, sess session.Store, x csrf.CSRF) (int, []byt
5050
panic(err)
5151
}
5252

53+
ctx.Resp.Header().Set("Content-Type", resp.Header.Get("Content-Type"))
54+
5355
defer resp.Body.Close()
5456
body, err := ioutil.ReadAll(resp.Body)
5557
if err != nil {

0 commit comments

Comments
 (0)