Skip to content
This repository was archived by the owner on Feb 7, 2018. It is now read-only.

Commit ed1d13c

Browse files
author
Arthur White
committed
Delete Content-Type header on Recover
1 parent 681c255 commit ed1d13c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

context.go

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ func (c *Context) Recover() {
4545
log.Printf("%v\n%s", err, stack)
4646

4747
if !c.Written() {
48+
c.ResponseWriter.Header().Del("Content-Type")
49+
4850
if c.handlersStack.PanicHandler != nil {
4951
c.Data["panic"] = err
5052
c.handlersStack.PanicHandler(c)

0 commit comments

Comments
 (0)