aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-11-16 14:02:38 +0100
committerLoïc Hoguin <[email protected]>2012-11-16 14:02:38 +0100
commit3e891b712030f480739cc2165641cf29c7376fd8 (patch)
tree9b6c6d044add36858107747419bc9bee55271966
parentfedf91fdfa3ee14b672596cba2289691b632fc2d (diff)
downloadcowboy-3e891b712030f480739cc2165641cf29c7376fd8.tar.gz
cowboy-3e891b712030f480739cc2165641cf29c7376fd8.tar.bz2
cowboy-3e891b712030f480739cc2165641cf29c7376fd8.zip
REST: Fix the status code sent if the content type isn't known
-rw-r--r--src/cowboy_rest.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_rest.erl b/src/cowboy_rest.erl
index 2d82fbe..fd71c63 100644
--- a/src/cowboy_rest.erl
+++ b/src/cowboy_rest.erl
@@ -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).