Skip to content

Commit 220631a

Browse files
committed
Fix cannot display with error code 404
1 parent d3d74b4 commit 220631a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hander.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func errorHandler(t *template.Template) func(http.ResponseWriter, *http.Request)
3232
w.Header().Set(RequestId, r.Header.Get(RequestId))
3333

3434
format := r.Header.Get(FormatHeader)
35-
if format == "" {
35+
if format != "application/json" {
3636
format = DefaultFormat
3737
}
3838

0 commit comments

Comments
 (0)