diff options
-rw-r--r-- | lib/yahns/req_res.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/req_res.rb b/lib/yahns/req_res.rb index 041b908..4ad8e5c 100644 --- a/lib/yahns/req_res.rb +++ b/lib/yahns/req_res.rb @@ -76,7 +76,7 @@ class Yahns::ReqRes < Kgio::Socket # :nodoc: when Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EPIPE e.set_backtrace([]) end - c.proxy_err_response(502, self, e) + c.proxy_err_response(Yahns::WbufCommon === @resbuf ? nil : 502, self, e) end def send_req_body_chunk(buf) |