Skip to content

Commit

Permalink
added json header
Browse files Browse the repository at this point in the history
  • Loading branch information
cateiru committed Aug 8, 2021
1 parent d2ee0dd commit 3cba232
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions status.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ func ErrorResponse(w http.ResponseWriter, statusCode int, err error) {
ErrorResponse(w, 1, err)
}

w.Header().Set("Content-Type", "application/json")
w.Write(responseText)
}

0 comments on commit 3cba232

Please sign in to comment.