Skip to content

Commit 46f3bb4

Browse files
committed
Panic status handler always use 500 response code
1 parent a9178c9 commit 46f3bb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

status_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func (*PanicStatusHandler) Handle(response *Response, _ *Request) {
3131
message := map[string]string{
3232
"error": http.StatusText(http.StatusInternalServerError),
3333
}
34-
response.JSON(response.GetStatus(), message)
34+
response.JSON(http.StatusInternalServerError, message)
3535
}
3636
}
3737

0 commit comments

Comments
 (0)