Skip to content

Commit

Permalink
Content-Type application/json
Browse files Browse the repository at this point in the history
  • Loading branch information
ilzheev committed Apr 8, 2021
1 parent 0fb8d99 commit 039c28e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions handler.go
Expand Up @@ -61,6 +61,7 @@ func HTTPRequestHandler(methods MethodMap, lgr Logger) http.HandlerFunc {
}

return func(w http.ResponseWriter, req *http.Request) {
w.Header().Set("Content-Type", "application/json")
res := handle(methods, req, lgr)
if req.Context().Err() != nil || res == nil {
return
Expand Down

0 comments on commit 039c28e

Please sign in to comment.