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 | a15a67ea7f0ef303dcdf5266d622a2f0fcf00683 (patch) | |
| tree | a035624551b22e1878390274e023741a93f60b73 /lib | |
| parent | c74acfd4011f68e82043d525515c563b9a11ed58 (diff) | |
| download | ruby-a15a67ea7f0ef303dcdf5266d622a2f0fcf00683.tar.gz ruby-a15a67ea7f0ef303dcdf5266d622a2f0fcf00683.tar.xz ruby-a15a67ea7f0ef303dcdf5266d622a2f0fcf00683.zip | |
* lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_connect):
should call :ProxyContentHandler before finishing CONNECT.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -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 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 |
