aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_rest.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy_rest.erl')
-rw-r--r--src/cowboy_rest.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cowboy_rest.erl b/src/cowboy_rest.erl
index 98c6f3b..306584a 100644
--- a/src/cowboy_rest.erl
+++ b/src/cowboy_rest.erl
@@ -155,11 +155,7 @@ forbidden(Req, State) ->
valid_content_headers(Req, State) ->
expect(Req, State, valid_content_headers, true,
- fun known_content_type/2, 501).
-
-known_content_type(Req, State) ->
- expect(Req, State, known_content_type, true,
- fun valid_entity_length/2, 415).
+ fun valid_entity_length/2, 501).
valid_entity_length(Req, State) ->
expect(Req, State, valid_entity_length, true, fun options/2, 413).