aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-01-23 09:20:46 +0100
committerLoïc Hoguin <[email protected]>2012-01-23 09:20:46 +0100
commit3667ec9451b968683b57e95be025f80ab0a6bdfb (patch)
treec01ad4d047652a184851365a52df6db3946e91e6
parentdee19f11c370a2800ecd3fd6f64eb127873fe29a (diff)
downloadcowboy-3667ec9451b968683b57e95be025f80ab0a6bdfb.tar.gz
cowboy-3667ec9451b968683b57e95be025f80ab0a6bdfb.tar.bz2
cowboy-3667ec9451b968683b57e95be025f80ab0a6bdfb.zip
Fix typespecs for calendar:datetime/0 in cowboy_http_static
-rw-r--r--src/cowboy_http_static.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_http_static.erl b/src/cowboy_http_static.erl
index 3e3cb9e..0ee996a 100644
--- a/src/cowboy_http_static.erl
+++ b/src/cowboy_http_static.erl
@@ -153,7 +153,7 @@
-type dirpath() :: string() | binary() | [binary()].
-type dirspec() :: dirpath() | {priv, atom(), dirpath()}.
-type mimedef() :: {binary(), binary(), [{binary(), binary()}]}.
--type etagarg() :: {filepath, binary()} | {mtime, cowboy_clock:datetime()}
+-type etagarg() :: {filepath, binary()} | {mtime, calendar:datetime()}
| {inode, non_neg_integer()} | {filesize, non_neg_integer()}.
%% handler state
@@ -240,7 +240,7 @@ forbidden(Req, #state{fileinfo={ok, #file_info{access=Access}}}=State) ->
%% @private Read the time a file system system object was last modified.
-spec last_modified(#http_req{}, #state{}) ->
- {cowboy_clock:datetime(), #http_req{}, #state{}}.
+ {calendar:datetime(), #http_req{}, #state{}}.
last_modified(Req, #state{fileinfo={ok, #file_info{mtime=Modified}}}=State) ->
{Modified, Req, State}.