about summary refs log tree commit homepage
path: root/lib/yahns/proxy_pass.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-04-07 03:16:57 +0000
committerEric Wong <e@80x24.org>2015-04-07 06:49:39 +0000
commitaec9f8095070a746ee44b8e85061141b7253c6ce (patch)
tree74cf97dd38406523dc7c4f19aaa56e777472ab10 /lib/yahns/proxy_pass.rb
parentd3e29023d02c52ddbcd06d44eb9baeb3890402f7 (diff)
downloadyahns-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.rb1
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