Browse Source

Fix the type of argument to mimetypes functions

Loïc Hoguin 11 years ago
parent
commit
5804a877d2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/cow_mimetypes.erl

+ 2 - 2
src/cow_mimetypes.erl

@@ -19,7 +19,7 @@
 
 
 %% @doc Return the mimetype for any file by looking at its extension.
 %% @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) ->
 all(Path) ->
 	case filename:extension(Path) of
 	case filename:extension(Path) of
 		<<>> -> {<<"application">>, <<"octet-stream">>, []};
 		<<>> -> {<<"application">>, <<"octet-stream">>, []};
@@ -28,7 +28,7 @@ all(Path) ->
 
 
 %% @doc Return the mimetype for a Web related file by looking at its extension.
 %% @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) ->
 web(Path) ->
 	case filename:extension(Path) of
 	case filename:extension(Path) of
 		<<>> -> {<<"application">>, <<"octet-stream">>, []};
 		<<>> -> {<<"application">>, <<"octet-stream">>, []};