summaryrefslogtreecommitdiff
path: root/lib/webrick
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-08-21 16:16:18 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-08-21 16:16:18 +0000
commit0263ace6fb5cc96c687a3cf09e950b7b430e9aa5 (patch)
treeb61f31c04c8b02228a23cedc785daaf5030fc044 /lib/webrick
parente5602e48dc3db4a056d67c4e98da8000192952f3 (diff)
* lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_connect):
should call :ProxyContentHandler before finishing CONNECT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick')
-rw-r--r--lib/webrick/httpproxy.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/webrick/httpproxy.rb b/lib/webrick/httpproxy.rb
index c3bbbc54be..65f830ecbb 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