0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 12:40:25 +00:00

Remove the REST known_content_type callback

This callback was simply useless.
This commit is contained in:
Loïc Hoguin 2014-10-03 18:52:14 +03:00
parent bee5ca852b
commit 4bc8e330fa
6 changed files with 6 additions and 137 deletions

View file

@ -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).