* lib/net/protocol.rb, http.rb: typo.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
aamine 2000-09-23 18:00:28 +00:00
parent e4fae8da4b
commit 69543770ca
3 changed files with 9 additions and 5 deletions

View File

@ -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> Sat Sep 23 03:06:25 2000 Yukihiro Matsumoto <matz@ruby-lang.org>
* variable.c (rb_autoload_load): should not require already * variable.c (rb_autoload_load): should not require already

View File

@ -55,7 +55,7 @@ You can get it from RAA
Note: Note:
If status is not 2xx(success), ProtocolError exception is If status is not 2xx(success), ProtocolError exception is
raised. At that time, you can get HTTPResponse object from raised. At that time, you can get HTTPResponse object from
execption object. (same in head/post) exception object. (same in head/post)
# example # example
begin begin
@ -112,7 +112,7 @@ You can get it from RAA
# but this is ok # but this is ok
http.get2( '/index.html' ) do |recv| 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 print recv.response.body # ref
end end
@ -444,10 +444,10 @@ module Net
def HTTP.Proxy( p_addr, p_port = nil ) def HTTP.Proxy( p_addr, p_port = nil )
klass = super klass = super
klass.module_eval( <<SRC, 'http.rb', __LINE__ + 1 ) klass.module_eval( <<'SRC', 'http.rb', __LINE__ + 1 )
def edit_path( path ) def edit_path( path )
'http://' + address + 'http://' + address +
(@port == HTTP.port ? '' : ':' + @port.to_s) + (@port == HTTP.port ? '' : ":#{@port}") +
path path
end end
SRC SRC

View File

@ -15,7 +15,7 @@ You can get it from RAA
== Net::Protocol == Net::Protocol
the abstruct class for Internet protocol the abstract class for Internet protocol
=== Super Class === Super Class