Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

REST: Fix the status code sent if the content type isn't known

  • Loading branch information...
commit 3e891b712030f480739cc2165641cf29c7376fd8 1 parent fedf91f
Loïc Hoguin essen authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/cowboy_rest.erl
2  src/cowboy_rest.erl
View
@@ -166,7 +166,7 @@ valid_content_headers(Req, State) ->
known_content_type(Req, State) ->
expect(Req, State, known_content_type, true,
- fun valid_entity_length/2, 413).
+ fun valid_entity_length/2, 415).
valid_entity_length(Req, State) ->
expect(Req, State, valid_entity_length, true, fun options/2, 413).
Please sign in to comment.
Something went wrong with that request. Please try again.