diff options
Diffstat (limited to 'extras')
-rw-r--r-- | extras/proxy_pass.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/extras/proxy_pass.rb b/extras/proxy_pass.rb index ac01c34..08f9730 100644 --- a/extras/proxy_pass.rb +++ b/extras/proxy_pass.rb @@ -16,8 +16,6 @@ require 'timeout' # cheap on GNU/Linux... # This is totally untested but currently doesn't serve anything important. class ProxyPass # :nodoc: - ERROR_502 = [ 502, {'Content-Length'=>'0','Content-Type'=>'text/plain'}, [] ] - class ConnPool def initialize @mtx = Mutex.new @@ -187,7 +185,7 @@ class ProxyPass # :nodoc: logger = env['rack.logger'] and Yahns::Log.exception(logger, 'proxy_pass', e) end - ERROR_502 + [ 502, [ %w(Content-Length 0), %w(Content-Type text/plain) ], [] ] end def send_body(input, ures, chunked) |