diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-08-21 16:16:18 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-08-21 16:16:18 +0000 |
commit | 0263ace6fb5cc96c687a3cf09e950b7b430e9aa5 (patch) | |
tree | b61f31c04c8b02228a23cedc785daaf5030fc044 /lib/webrick/httpproxy.rb | |
parent | e5602e48dc3db4a056d67c4e98da8000192952f3 (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/httpproxy.rb')
-rw-r--r-- | lib/webrick/httpproxy.rb | 3 |
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 |