aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_mimetypes.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cow_mimetypes.erl')
-rw-r--r--src/cow_mimetypes.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cow_mimetypes.erl b/src/cow_mimetypes.erl
index c2e6ef4..35f4c5f 100644
--- a/src/cow_mimetypes.erl
+++ b/src/cow_mimetypes.erl
@@ -23,7 +23,7 @@
all(Path) ->
case filename:extension(Path) of
<<>> -> {<<"application">>, <<"octet-stream">>, []};
- << $., Ext/binary >> -> all_ext(Ext)
+ << $., Ext/binary >> -> all_ext(string:lowercase(Ext))
end.
%% @doc Return the mimetype for a Web related file by looking at its extension.
@@ -32,7 +32,7 @@ all(Path) ->
web(Path) ->
case filename:extension(Path) of
<<>> -> {<<"application">>, <<"octet-stream">>, []};
- << $., Ext/binary >> -> web_ext(Ext)
+ << $., Ext/binary >> -> web_ext(string:lowercase(Ext))
end.
%% Internal.