summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--lib/net/http.rb8
-rw-r--r--lib/net/protocol.rb2
3 files changed, 9 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 41f225b564..22cda3aa1f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Sep 24 03:01:53 2000 Minero Aoki <aamine@dp.u-netsurf.ne.jp>
+
+ * lib/net/protocol.rb, http.rb: typo.
+
Sat Sep 23 03:06:25 2000 Yukihiro Matsumoto <matz@ruby-lang.org>
* variable.c (rb_autoload_load): should not require already
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
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb
index 3cf20f8e44..aaacc55f60 100644
--- a/lib/net/protocol.rb
+++ b/lib/net/protocol.rb
@@ -15,7 +15,7 @@ You can get it from RAA
== Net::Protocol
-the abstruct class for Internet protocol
+the abstract class for Internet protocol
=== Super Class