aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_static.erl
diff options
context:
space:
mode:
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.