Project

General

Profile

Backport #8013 ยป fix-typo-webrick-httpproxy.patch

no6v (Nobuhiro IMAI), 03/05/2013 04:05 AM

View differences:

lib/webrick/httpproxy.rb
#
# proxy = WEBrick::HTTPProxyServer.new Port: 8000
#
# trap 'INT' do p.shutdown end
# trap 'TERM' do p.shutdown end
# trap 'INT' do proxy.shutdown end
# trap 'TERM' do proxy.shutdown end
#
# p.start
# proxy.start
#
# See ::new for proxy-specific configuration items.
#
......
res.send_response(ua)
access_log(@config, req, res)
# Should clear request-line not to send the sesponse twice.
# Should clear request-line not to send the response twice.
# see: HTTPServer#run
req.parse(NullReader) rescue nil
end
    (1-1/1)