aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_static.erl2
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.