diff options
author | Eric Wong <e@80x24.org> | 2015-04-07 03:16:57 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-04-07 06:49:39 +0000 |
commit | aec9f8095070a746ee44b8e85061141b7253c6ce (patch) | |
tree | 74cf97dd38406523dc7c4f19aaa56e777472ab10 /lib/yahns/proxy_pass.rb | |
parent | d3e29023d02c52ddbcd06d44eb9baeb3890402f7 (diff) | |
download | yahns-aec9f8095070a746ee44b8e85061141b7253c6ce.tar.gz |
Rack apps may (through a round-about way) send HTTP trailers to HTTP/1.1 clients, and we need a way to forward those responses through without losing the trailers.
Diffstat (limited to 'lib/yahns/proxy_pass.rb')
-rw-r--r-- | lib/yahns/proxy_pass.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/yahns/proxy_pass.rb b/lib/yahns/proxy_pass.rb index ec1fbcf..3812dbf 100644 --- a/lib/yahns/proxy_pass.rb +++ b/lib/yahns/proxy_pass.rb @@ -12,6 +12,7 @@ require_relative 'proxy_http_response' class Yahns::ProxyPass # :nodoc: class ReqRes < Kgio::Socket attr_writer :resbuf + attr_accessor :proxy_trailers def req_start(c, req, input, chunked) @hdr = @resbuf = nil |