aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-11-02 15:38:00 +0100
committerLoïc Hoguin <[email protected]>2013-11-02 15:38:00 +0100
commit5804a877d2d4166f3fca60c59fb950b054b0ba98 (patch)
treec8c9a7cf9c1847a1155813cd70850fe57986bcd4
parent34a39ef28ca841fb9233ce9df3ec654eb321c5e5 (diff)
downloadcowlib-5804a877d2d4166f3fca60c59fb950b054b0ba98.tar.gz
cowlib-5804a877d2d4166f3fca60c59fb950b054b0ba98.tar.bz2
cowlib-5804a877d2d4166f3fca60c59fb950b054b0ba98.zip
Fix the type of argument to mimetypes functions
-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 a540c90..345fbac 100644
--- a/src/cow_mimetypes.erl
+++ b/src/cow_mimetypes.erl
@@ -19,7 +19,7 @@
%% @doc Return the mimetype for any file by looking at its extension.
--spec all(file:filename_all()) -> {binary(), binary(), []}.
+-spec all(binary()) -> {binary(), binary(), []}.
all(Path) ->
case filename:extension(Path) of
<<>> -> {<<"application">>, <<"octet-stream">>, []};
@@ -28,7 +28,7 @@ all(Path) ->
%% @doc Return the mimetype for a Web related file by looking at its extension.
--spec web(file:filename_all()) -> {binary(), binary(), []}.
+-spec web(binary()) -> {binary(), binary(), []}.
web(Path) ->
case filename:extension(Path) of
<<>> -> {<<"application">>, <<"octet-stream">>, []};