diff options
Diffstat (limited to 'lib/unicorn/trailer_parser.rb')
-rw-r--r-- | lib/unicorn/trailer_parser.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/unicorn/trailer_parser.rb b/lib/unicorn/trailer_parser.rb index c65dc8a..9431331 100644 --- a/lib/unicorn/trailer_parser.rb +++ b/lib/unicorn/trailer_parser.rb @@ -40,9 +40,9 @@ module Unicorn key.tr!(TR_FR, TR_TO) - @trailers.delete(key.freeze) or + @trailers.delete(key) or raise HttpParserError, "unknown trailer: #{key.inspect}" - env[key] = val + env["HTTP_#{key}"] = val @trailers.empty? and return true end while true |