summaryrefslogtreecommitdiff
path: root/lib/net/http.rb
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-03 09:20:35 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-03 09:20:35 +0000
commit9dd98aa46e01544afb84c64d461e5b2360b81eac (patch)
tree53394db0c07cb07d0b03da7bdeec7e536548ef5e /lib/net/http.rb
parent4550e078892fd210a4be65ab6b130d2fa95f26c3 (diff)
* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.26.
* lib/net/protocol.rb (finish): do nothing unless active. * lib/net/http.rb: HTTP#{get,post}2 again (for new impl). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r--lib/net/http.rb13
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index c5612c8754..5e66f9ddef 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -248,30 +248,23 @@ module Net
undef head
alias head head2
- undef head2
- alias old_get2 get2
- undef get2
undef get
def get( path, u_header = nil, dest = nil, &block )
- old_get2( path, u_header ) {|f| f.body( dest, &block ) }
+ get2( path, u_header ) {|f| f.body( dest, &block ) }
end
- alias old_post2 post2
- undef post2
undef post
def post( path, data, u_header = nil, dest = nil, &block )
- old_post2( path, data, u_header ) {|f| f.body( dest, &block ) }
+ post2( path, data, u_header ) {|f| f.body( dest, &block ) }
end
- alias old_put2 put2
- undef put2
undef put
def put( path, src, u_header = nil )
- old_put2( path, src, u_header ) {|f| f.body }
+ put2( path, src, u_header ) {|f| f.body }
end
^