From 8454e2b25f4aea51fabeca920251e6f948242cd3 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Sat, 21 Aug 2004 16:16:18 +0000 Subject: * lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_connect): should call :ProxyContentHandler before finishing CONNECT. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/webrick/httpproxy.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/webrick/httpproxy.rb b/lib/webrick/httpproxy.rb index c3bbbc54b..65f830ecb 100644 --- a/lib/webrick/httpproxy.rb +++ b/lib/webrick/httpproxy.rb @@ -206,6 +206,9 @@ module WEBrick res.set_error(ex) raise HTTPStatus::EOFError ensure + if handler = @config[:ProxyContentHandler] + handler.call(req, res) + end res.send_response(ua) access_log(@config, req, res) end -- cgit