Skip to content

Commit

Permalink
Update content_type_middleware.go
Browse files Browse the repository at this point in the history
Co-authored-by: Étienne M. <[email protected]>
  • Loading branch information
SCedricThomas and EtienneM authored Jul 18, 2024
1 parent 9d63950 commit 68a5d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content_type_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"
)

var JSONContentTypeMiddleware = MiddlewareFunc(func(handler HandlerFunc) HandlerFunc {
var ContentTypeJSONMiddleware = MiddlewareFunc(func(handler HandlerFunc) HandlerFunc {
return func(w http.ResponseWriter, r *http.Request, vars map[string]string) error {
w.Header().Set("Content-Type", "application/json")
return handler(w, r, vars)
Expand Down

0 comments on commit 68a5d4a

Please sign in to comment.