merge revision(s) 39632: [Backport #8013]

* lib/webrick/httpproxy.rb: Fix typos in HTTPProxyServer [Bug #8013]
	  Patch by Nobuhiro IMAI [ruby-core:53127]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagachika 2013-03-24 16:27:10 +00:00
parent 1154668521
commit a41e107fd8
3 changed files with 10 additions and 5 deletions

View file

@ -46,10 +46,10 @@ module WEBrick
#
# 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.
#
@ -186,7 +186,7 @@ module WEBrick
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