diff options
author | Loïc Hoguin <[email protected]> | 2018-11-19 12:24:28 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-11-19 12:24:28 +0100 |
commit | ae96aa6e494d8cb4bf3525ecf7575552d1e6f5e9 (patch) | |
tree | 31885b948e783233d348923490f63edec3662d7d /src | |
parent | 84aea5d24d9e3bdcfc336da02d906bd33dfe0b47 (diff) | |
download | cowboy-ae96aa6e494d8cb4bf3525ecf7575552d1e6f5e9.tar.gz cowboy-ae96aa6e494d8cb4bf3525ecf7575552d1e6f5e9.tar.bz2 cowboy-ae96aa6e494d8cb4bf3525ecf7575552d1e6f5e9.zip |
Add an additional test to the static test suite
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_static.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_static.erl b/src/cowboy_static.erl index 19c15c2..d6ef45c 100644 --- a/src/cowboy_static.erl +++ b/src/cowboy_static.erl @@ -340,7 +340,7 @@ charsets_provided(Req, State={Path, _, Extra}) -> no_call; {charset, Module, Function} -> {[Module:Function(Path)], Req, State}; - {charset, Charset} -> + {charset, Charset} when is_binary(Charset) -> {[Charset], Req, State} end. |