summaryrefslogtreecommitdiff
path: root/sample/webrick/httpproxy.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-26 22:22:37 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-26 22:22:37 +0000
commitca9654114920982b7603e28d6e8d808df77f1795 (patch)
tree7ab1a8cf2de8781c681571480b228ec843e8dd75 /sample/webrick/httpproxy.rb
parent18e342e80dfe96b865e3b80a27687ccf4b09d781 (diff)
* ext/pathname/lib/pathname.rb: Fix typos and grammar mistakes. Patch
by Luke Gruber. [#5203] * ext/pty/lib/expect.rb: ditto * lib/mathn.rb: ditto * lib/net/http.rb: ditto * lib/open-uri.rb: ditto * lib/ostruct.rb: ditto * lib/tempfile.rb: ditto * lib/thread.rb: ditto * lib/weakref.rb: ditto * sample/webrick/httpproxy.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 bca0cc4626..c84457ece7 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 ]