aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_static.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-07-12 14:19:29 +0200
committerLoïc Hoguin <[email protected]>2014-07-12 14:19:29 +0200
commite2b5c21443a53b3bc98c90e41b8ccf08d5731db7 (patch)
treef6e85ceb5819a8cbfd36e7f8b77980680095cff5 /src/cowboy_static.erl
parentde4697690c5bee8349ff80f84b2393fd698c7d39 (diff)
downloadcowboy-e2b5c21443a53b3bc98c90e41b8ccf08d5731db7.tar.gz
cowboy-e2b5c21443a53b3bc98c90e41b8ccf08d5731db7.tar.bz2
cowboy-e2b5c21443a53b3bc98c90e41b8ccf08d5731db7.zip
Drop R15 support
Diffstat (limited to 'src/cowboy_static.erl')
-rw-r--r--src/cowboy_static.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cowboy_static.erl b/src/cowboy_static.erl
index d10ee87..fae4568 100644
--- a/src/cowboy_static.erl
+++ b/src/cowboy_static.erl
@@ -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.