From 0263ace6fb5cc96c687a3cf09e950b7b430e9aa5 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Sat, 21 Aug 2004 16:16:18 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ lib/webrick/httpproxy.rb | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 78a8846e28..e476a8b79e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Aug 22 01:10:36 2004 GOTOU Yuuzou + + * lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_connect): + should call :ProxyContentHandler before finishing CONNECT. + Sat Aug 21 06:41:16 2004 Nobuyoshi Nakada * ext/tcltklib/extconf.rb (find_tcl, find_tk): find stub library. 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