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:
parent
c9f5603650
commit
a82495fa5c
1 changed files with 2 additions and 0 deletions
|
@ -86,6 +86,8 @@ init_dir(Req, Path, Extra) ->
|
|||
case fullpath(Filepath) of
|
||||
<< Dir:Len/binary, $/, _/binary >> ->
|
||||
init_info(Req, Filepath, Extra);
|
||||
<< Dir:Len/binary >> ->
|
||||
init_info(Req, Filepath, Extra);
|
||||
_ ->
|
||||
{cowboy_rest, Req, error}
|
||||
end.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue