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

Add an additional test to the static test suite

This commit is contained in:
Loïc Hoguin 2018-11-19 12:24:28 +01:00
parent 84aea5d24d
commit ae96aa6e49
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
2 changed files with 7 additions and 1 deletions

View file

@ -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.