From f01c1d4071e8ce30aa6806fd3cd8eec7491bf06c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 30 Jun 2009 17:15:34 -0700 Subject: trailer_parser: set keys with "HTTP_" prefix --- lib/unicorn/trailer_parser.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3-24-ge0c7