diff options
author | Eric Wong <e@80x24.org> | 2015-11-21 08:52:32 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-11-21 08:55:07 +0000 |
commit | 129fcb3dcc1fecd32b7e73d6ea30c8c6aedbb259 (patch) | |
tree | 4ba5ad84c42e16d404e75bb53969c9e55314b4cd /lib/rainbows/response.rb | |
parent | 707041b330c7c5c4d901fde092a7faa8bb8f9f65 (diff) | |
download | rainbows-129fcb3dcc1fecd32b7e73d6ea30c8c6aedbb259.tar.gz |
Redundant \z statements are ugly and wastes 4 bytes on x86-64 according to ObjectSpace.memsize_of
Diffstat (limited to 'lib/rainbows/response.rb')
-rw-r--r-- | lib/rainbows/response.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/response.rb b/lib/rainbows/response.rb index ac50321..62dfa39 100644 --- a/lib/rainbows/response.rb +++ b/lib/rainbows/response.rb @@ -30,7 +30,7 @@ module Rainbows::Response "Date: #{httpdate}\r\n" headers.each do |key, value| case key - when %r{\A(?:Date\z|Connection\z)}i + when %r{\A(?:Date|Connection)\z}i next when "rack.hijack" # this was an illegal key in Rack < 1.5, so it should be |