summaryrefslogtreecommitdiffstats
path: root/lib/webrick
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-04 09:37:38 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-04 09:37:38 +0000
commitf12e1bb3fa605f99201e02b80752725839e12e1a (patch)
treedcaf4183b65972648531083adbd167bfd1274d38 /lib/webrick
parent2e4a24efb251c81855abd25beb6a3ab74ec02ab4 (diff)
downloadruby-f12e1bb3fa605f99201e02b80752725839e12e1a.tar.gz
ruby-f12e1bb3fa605f99201e02b80752725839e12e1a.tar.xz
ruby-f12e1bb3fa605f99201e02b80752725839e12e1a.zip
* lib/rdoc.rb: massive spelling correction patch from Evan Farrar
<evanfarrar at gmail.com> in [ruby-doc:1382] applied. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick')
-rw-r--r--lib/webrick/httpproxy.rb4
-rw-r--r--lib/webrick/httpresponse.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/webrick/httpproxy.rb b/lib/webrick/httpproxy.rb
index 49e618d4e..29ee1057e 100644
--- a/lib/webrick/httpproxy.rb
+++ b/lib/webrick/httpproxy.rb
@@ -186,7 +186,7 @@ module WEBrick
private
- # Some header fields shuold not be transfered.
+ # Some header fields should not be transferred.
HopByHop = %w( connection keep-alive proxy-authenticate upgrade
proxy-authorization te trailers transfer-encoding )
ShouldNotTransfer = %w( set-cookie proxy-connection )
@@ -272,7 +272,7 @@ module WEBrick
response = yield(http, path, header)
end
- # Persistent connction requirements are mysterious for me.
+ # Persistent connection requirements are mysterious for me.
# So I will close the connection in every response.
res['proxy-connection'] = "close"
res['connection'] = "close"
diff --git a/lib/webrick/httpresponse.rb b/lib/webrick/httpresponse.rb
index 5c580ffb6..301ecb837 100644
--- a/lib/webrick/httpresponse.rb
+++ b/lib/webrick/httpresponse.rb
@@ -131,7 +131,7 @@ module WEBrick
end
end
- # Determin the message length (RFC2616 -- 4.4 Message Length)
+ # Determine the message length (RFC2616 -- 4.4 Message Length)
if @status == 304 || @status == 204 || HTTPStatus::info?(@status)
@header.delete('content-length')
@body = ""