0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Static: Fix status code returned with empty path_info

This commit is contained in:
Loïc Hoguin 2016-06-06 17:37:52 +02:00
parent c9f5603650
commit a82495fa5c

View file

@ -86,6 +86,8 @@ init_dir(Req, Path, Extra) ->
case fullpath(Filepath) of case fullpath(Filepath) of
<< Dir:Len/binary, $/, _/binary >> -> << Dir:Len/binary, $/, _/binary >> ->
init_info(Req, Filepath, Extra); init_info(Req, Filepath, Extra);
<< Dir:Len/binary >> ->
init_info(Req, Filepath, Extra);
_ -> _ ->
{cowboy_rest, Req, error} {cowboy_rest, Req, error}
end. end.