diff options
author | Loïc Hoguin <[email protected]> | 2014-10-03 18:52:14 +0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2014-10-03 18:52:14 +0300 |
commit | 4bc8e330fa239d1ade18a5d75ea018f1a954bfb3 (patch) | |
tree | f22ebb731917ebe8ed9f9a696c927fd4ea1e6e54 /src | |
parent | bee5ca852b1a8e1506872aeea57f6c745c8add77 (diff) | |
download | cowboy-4bc8e330fa239d1ade18a5d75ea018f1a954bfb3.tar.gz cowboy-4bc8e330fa239d1ade18a5d75ea018f1a954bfb3.tar.bz2 cowboy-4bc8e330fa239d1ade18a5d75ea018f1a954bfb3.zip |
Remove the REST known_content_type callback
This callback was simply useless.
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_rest.erl | 6 |
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). |