diff options
Diffstat (limited to 'databases/leofs/files/patch-deps-cowboy-src-cowboy_protocol.erl')
-rw-r--r-- | databases/leofs/files/patch-deps-cowboy-src-cowboy_protocol.erl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/databases/leofs/files/patch-deps-cowboy-src-cowboy_protocol.erl b/databases/leofs/files/patch-deps-cowboy-src-cowboy_protocol.erl new file mode 100644 index 000000000000..241fb80ca13d --- /dev/null +++ b/databases/leofs/files/patch-deps-cowboy-src-cowboy_protocol.erl @@ -0,0 +1,17 @@ +Make cowboy correctly parse target URI that has method in uppercase. + +--- deps/cowboy/src/cowboy_protocol.erl.orig 2013-06-20 19:44:36.000000000 +0300 ++++ deps/cowboy/src/cowboy_protocol.erl 2014-07-31 23:10:11.000000000 +0300 +@@ -214,8 +214,12 @@ + parse_version(Rest, State, Method, <<"*">>, <<>>); + parse_uri(<< "http://", Rest/bits >>, State, Method) -> + parse_uri_skip_host(Rest, State, Method); ++parse_uri(<< "HTTP://", Rest/bits >>, State, Method) -> ++ parse_uri_skip_host(Rest, State, Method); + parse_uri(<< "https://", Rest/bits >>, State, Method) -> + parse_uri_skip_host(Rest, State, Method); ++parse_uri(<< "HTTPS://", Rest/bits >>, State, Method) -> ++ parse_uri_skip_host(Rest, State, Method); + parse_uri(Buffer, State, Method) -> + parse_uri_path(Buffer, State, Method, <<>>). + |