Browse Source

Merge branch 'master' of https://github.com/0x00F6/cowboy

Loïc Hoguin 12 years ago
parent
commit
ca9184f39c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/cowboy_static.erl

+ 1 - 1
src/cowboy_static.erl

@@ -289,7 +289,7 @@ forbidden(Req, #state{fileinfo={ok, #file_info{access=Access}}}=State) ->
 -spec last_modified(Req, #state{})
 	-> {calendar:datetime(), Req, #state{}} when Req::cowboy_req:req().
 last_modified(Req, #state{fileinfo={ok, #file_info{mtime=Modified}}}=State) ->
-	{Modified, Req, State}.
+	{erlang:localtime_to_universaltime(Modified), Req, State}.
 
 
 %% @private Generate the ETag header value for this file.