summaryrefslogtreecommitdiff
path: root/lib/net/http.rb
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-23 18:00:28 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-23 18:00:28 +0000
commit69543770ca16e1a8b4b7341e507a0cf154b32cf5 (patch)
treedd460687b7332fe3aaae601f9330edebd8b1f857 /lib/net/http.rb
parente4fae8da4beeb7b61a9c3b58d66a4e594f0e73fa (diff)
aamine
* lib/net/protocol.rb, http.rb: typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r--lib/net/http.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index ea5c991e60..e37eedf9da 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -55,7 +55,7 @@ You can get it from RAA
Note:
If status is not 2xx(success), ProtocolError exception is
raised. At that time, you can get HTTPResponse object from
- execption object. (same in head/post)
+ exception object. (same in head/post)
# example
begin
@@ -112,7 +112,7 @@ You can get it from RAA
# but this is ok
http.get2( '/index.html' ) do |recv|
- recv.body # read body and set recv.header.body
+ recv.body # read body and set recv.response.body
print recv.response.body # ref
end
@@ -444,10 +444,10 @@ module Net
def HTTP.Proxy( p_addr, p_port = nil )
klass = super
- klass.module_eval( <<SRC, 'http.rb', __LINE__ + 1 )
+ klass.module_eval( <<'SRC', 'http.rb', __LINE__ + 1 )
def edit_path( path )
'http://' + address +
- (@port == HTTP.port ? '' : ':' + @port.to_s) +
+ (@port == HTTP.port ? '' : ":#{@port}") +
path
end
SRC