mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Drop R15 support
This commit is contained in:
parent
de4697690c
commit
e2b5c21443
7 changed files with 11 additions and 17 deletions
|
@ -264,8 +264,7 @@ generate_etag(Req, State={Path, {ok, #file_info{size=Size, mtime=Mtime}},
|
|||
end.
|
||||
|
||||
generate_default_etag(Size, Mtime) ->
|
||||
{strong, list_to_binary(integer_to_list(
|
||||
erlang:phash2({Size, Mtime}, 16#ffffffff)))}.
|
||||
{strong, integer_to_binary(erlang:phash2({Size, Mtime}, 16#ffffffff))}.
|
||||
|
||||
%% Return the time of last modification of the file.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue