diff options
-rw-r--r-- | lib/rack/common_logger.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rack/common_logger.rb b/lib/rack/common_logger.rb index 3810b269..4acd11ff 100644 --- a/lib/rack/common_logger.rb +++ b/lib/rack/common_logger.rb @@ -44,8 +44,8 @@ module Rack private # Log the request to the configured logger. - def log(env, status, header, began_at) - length = extract_content_length(header) + def log(env, status, headers, began_at) + length = extract_content_length(headers) msg = FORMAT % [ env['HTTP_X_FORWARDED_FOR'] || env["REMOTE_ADDR"] || "-", |