diff options
author | Loïc Hoguin <[email protected]> | 2012-11-16 14:02:38 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-11-16 14:02:38 +0100 |
commit | 3e891b712030f480739cc2165641cf29c7376fd8 (patch) | |
tree | 9b6c6d044add36858107747419bc9bee55271966 /src | |
parent | fedf91fdfa3ee14b672596cba2289691b632fc2d (diff) | |
download | cowboy-3e891b712030f480739cc2165641cf29c7376fd8.tar.gz cowboy-3e891b712030f480739cc2165641cf29c7376fd8.tar.bz2 cowboy-3e891b712030f480739cc2165641cf29c7376fd8.zip |
REST: Fix the status code sent if the content type isn't known
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_rest.erl | 2 |
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). |