lib/timber/events/http_server_request.rb in timber-1.1.4 vs lib/timber/events/http_server_request.rb in timber-1.1.5
- old
+ new
@@ -27,13 +27,10 @@
request_id: request_id, user_agent: user_agent}}
end
alias to_h to_hash
def as_json(_options = {})
- hash = to_hash
- hash[:headers] = Util::Hash.compact(hash[:headers])
- hash = Util::Hash.compact(hash)
- {:server_side_app => {:http_request => hash}}
+ {:server_side_app => {:http_request => to_hash}}
end
def message
'Started %s "%s" for %s' % [
method,
\ No newline at end of file