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:
parent
99a0298b4f
commit
b7956b2016
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue