1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Use string interpolation instead of plus.

This commit is contained in:
Francesco Rodriguez 2016-09-07 23:37:37 +02:00
parent 99a0298b4f
commit b7956b2016

View file

@ -61,7 +61,7 @@ module Puma
now.strftime("%d/%b/%Y %H:%M:%S"),
env[REQUEST_METHOD],
env[PATH_INFO],
env[QUERY_STRING].empty? ? "" : "?"+env[QUERY_STRING],
env[QUERY_STRING].empty? ? "" : "?#{env[QUERY_STRING]}",
env["HTTP_VERSION"],
now - began_at ]
end
@ -76,7 +76,7 @@ module Puma
now.strftime("%d/%b/%Y:%H:%M:%S %z"),
env[REQUEST_METHOD],
env[PATH_INFO],
env[QUERY_STRING].empty? ? "" : "?"+env[QUERY_STRING],
env[QUERY_STRING].empty? ? "" : "?#{env[QUERY_STRING]}",
env["HTTP_VERSION"],
status.to_s[0..3],
length,