Skip to content

Commit

Permalink
Fix typespecs for calendar:datetime/0 in cowboy_http_static
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Hoguin committed Jan 23, 2012
1 parent dee19f1 commit 3667ec9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cowboy_http_static.erl
Expand Up @@ -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
Expand Down Expand Up @@ -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}.

Expand Down

0 comments on commit 3667ec9

Please sign in to comment.