diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-02-04 10:58:05 +1300 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-02-05 13:35:25 +1300 |
commit | d2e608e8d54b76ec7e52bb7c6508c5a5259c934e (patch) | |
tree | f956a408abd3101f2a46f6e72de9fd501e1198a8 /lib/rack/show_status.rb | |
parent | 65992dfca8bf8a2f108d12f3a4c932f23f9c6646 (diff) | |
download | rack-d2e608e8d54b76ec7e52bb7c6508c5a5259c934e.tar.gz |
Memoize header hash usage. Fixes #738.
Diffstat (limited to 'lib/rack/show_status.rb')
-rw-r--r-- | lib/rack/show_status.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/show_status.rb b/lib/rack/show_status.rb index 56034750..4d01d448 100644 --- a/lib/rack/show_status.rb +++ b/lib/rack/show_status.rb @@ -18,7 +18,7 @@ module Rack def call(env) status, headers, body = @app.call(env) - headers = Utils::HeaderHash.new(headers) + headers = Utils::HeaderHash[headers] empty = headers[CONTENT_LENGTH].to_i <= 0 # client or server error, or explicit message |