Permalink
Browse files

Fix rack content length error

  • Loading branch information...
TiteiKo committed Aug 9, 2017
1 parent 0b7a079 commit c4199632b8c7a5bc11ba44dfcd52e710f46e5772
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/hanami/common_logger.rb
@@ -60,7 +60,7 @@ def log(env, status, header, began_at)
ip: env[HTTP_X_FORWARDED_FOR] || env[REMOTE_ADDR],
path: env[SCRIPT_NAME] + env[PATH_INFO],
length: length,
params: env[QUERY_HASH].merge(env[FORM_HASH]),
params: env[QUERY_HASH].merge(env[FORM_HASH] || Hash[]),
elapsed: now - began_at
]

0 comments on commit c419963

Please sign in to comment.