diff options
author | Loïc Hoguin <[email protected]> | 2012-11-27 12:02:31 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-11-27 12:02:31 +0100 |
commit | 8386e10dcc9a4136717d728bb8c0918dc57d9f93 (patch) | |
tree | b9150ca0c58a562265949da9840e8261de104f6c /src/cowboy_protocol.erl | |
parent | 9942beb58cb11c0f4ba4c98145b5cd1ff94985cf (diff) | |
parent | 0ce16b3cea25187914df89224c4e204b7715420e (diff) | |
download | cowboy-8386e10dcc9a4136717d728bb8c0918dc57d9f93.tar.gz cowboy-8386e10dcc9a4136717d728bb8c0918dc57d9f93.tar.bz2 cowboy-8386e10dcc9a4136717d728bb8c0918dc57d9f93.zip |
Merge branch '400_Bad_Request' of git://github.com/blinkov/cowboy
Diffstat (limited to 'src/cowboy_protocol.erl')
-rw-r--r-- | src/cowboy_protocol.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cowboy_protocol.erl b/src/cowboy_protocol.erl index c5ea561..df2e963 100644 --- a/src/cowboy_protocol.erl +++ b/src/cowboy_protocol.erl @@ -464,6 +464,8 @@ dispatch(Req, State=#state{dispatch=Dispatch}, Host, Path) -> handler_init(Req2, State, Handler, Opts); {error, notfound, host} -> error_terminate(400, State); + {error, badrequest, path} -> + error_terminate(400, State); {error, notfound, path} -> error_terminate(404, State) end. |