diff options
author | Eric Wong <e@80x24.org> | 2016-06-01 23:53:33 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-06-01 23:53:33 +0000 |
commit | a3e3ab48a5a73e7d55bfcb271e5f2a1b666a4f8c (patch) | |
tree | 63eb4f47c6b6cf07d0ee52fd110409228268397b /lib/yahns/proxy_http_response.rb | |
parent | 0f40562e710445dc0b793dba8962d235ba3bd954 (diff) | |
download | yahns-a3e3ab48a5a73e7d55bfcb271e5f2a1b666a4f8c.tar.gz |
This will allow us to add extra options at the response layer without taking up extra env hash keys.
Diffstat (limited to 'lib/yahns/proxy_http_response.rb')
-rw-r--r-- | lib/yahns/proxy_http_response.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/proxy_http_response.rb b/lib/yahns/proxy_http_response.rb index 284a3c6..c7a9447 100644 --- a/lib/yahns/proxy_http_response.rb +++ b/lib/yahns/proxy_http_response.rb @@ -71,7 +71,7 @@ module Yahns::HttpResponse # :nodoc: flags = MSG_DONTWAIT alive = @hs.next? && self.class.persistent_connections term = false - response_headers = env['yahns.proxy_pass.response_headers'] + response_headers = env['yahns.proxy_pass'].response_headers res = "HTTP/1.1 #{msg ? %Q(#{code} #{msg}) : status}\r\n".dup headers.each do |key,value| # n.b.: headers is an Array of 2-element Arrays |