Skip to content

Commit 2227f4d

Browse files
ignore response if not set (with 500 errors for instance)
1 parent b72e5c5 commit 2227f4d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/debugbar/http/http.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ def initialize(status, headers, body)
3232
end
3333

3434
def self.from_rack(rack_res)
35+
return nil if rack_res.nil?
36+
3537
headers = rack_res.headers.to_h.transform_keys { |s| s.split('-').map(&:capitalize).join('-') }
3638

3739
new(rack_res.status, headers, rack_res.body)

0 commit comments

Comments
 (0)