diff options
author | Loïc Hoguin <[email protected]> | 2016-06-06 17:37:52 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-06-06 17:38:39 +0200 |
commit | a82495fa5ccefb71a1996fca84abd9b306ed986c (patch) | |
tree | 192b32e0bc69db79736cf35ea0667be38f37a612 /src/cowboy_static.erl | |
parent | c9f5603650db717efe24dbf4d266071331f4e2f9 (diff) | |
download | cowboy-a82495fa5ccefb71a1996fca84abd9b306ed986c.tar.gz cowboy-a82495fa5ccefb71a1996fca84abd9b306ed986c.tar.bz2 cowboy-a82495fa5ccefb71a1996fca84abd9b306ed986c.zip |
Static: Fix status code returned with empty path_info
Diffstat (limited to 'src/cowboy_static.erl')
-rw-r--r-- | src/cowboy_static.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cowboy_static.erl b/src/cowboy_static.erl index c771771..62f7b52 100644 --- a/src/cowboy_static.erl +++ b/src/cowboy_static.erl @@ -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. |