summaryrefslogtreecommitdiff
path: root/sample/webrick/httpproxy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/webrick/httpproxy.rb')
-rw-r--r--sample/webrick/httpproxy.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/sample/webrick/httpproxy.rb b/sample/webrick/httpproxy.rb
index bca0cc4..c84457e 100644
--- a/sample/webrick/httpproxy.rb
+++ b/sample/webrick/httpproxy.rb
@@ -1,10 +1,9 @@
require "webrick"
require "webrick/httpproxy"
-# :ProxyContentHandler will be invoked before sending
-# response to User-Agenge. You can inspect the pair of
-# request and response messages (or can edit the response
-# message if necessary).
+# The :ProxyContentHandler proc will be invoked before sending a response to
+# the User-Agent. You can inspect the pair of request and response messages
+# (or edit the response message if necessary).
pch = Proc.new{|req, res|
p [ req.request_line, res.status_line ]