diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-02-13 07:55:16 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-02-13 07:55:16 +0000 |
commit | c5b5946b8d706e2fadc78f2a850b0dc4cfdd1a90 (patch) | |
tree | a20a395666e28e3a902813dfe241533daa6c5512 /lib/net | |
parent | 64b2140d0b4c2f6d5288b34319b6d6a6e8314293 (diff) |
aamine
* lib/net/http.rb: supports HTTP 1.0 server.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r-- | lib/net/http.rb | 5 | ||||
-rw-r--r-- | lib/net/pop.rb | 2 | ||||
-rw-r--r-- | lib/net/protocol.rb | 4 | ||||
-rw-r--r-- | lib/net/smtp.rb | 2 |
4 files changed, 8 insertions, 5 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index e17967e064..9c11e71860 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1,6 +1,6 @@ =begin -= net/http.rb version 1.1.32 += net/http.rb version 1.1.33 maintained by Minero Aoki <aamine@dp.u-netsurf.ne.jp> This file is derived from "http-access.rb". @@ -474,6 +474,9 @@ module Net resp = yield + if @command.http_version == '1.0' then + @seems_1_0 = true + end if keep_alive? header, resp then if @socket.closed? then @seems_1_0 = true diff --git a/lib/net/pop.rb b/lib/net/pop.rb index 4f6eb930a4..4b22bde5d4 100644 --- a/lib/net/pop.rb +++ b/lib/net/pop.rb @@ -1,6 +1,6 @@ =begin -= net/pop.rb version 1.1.32 += net/pop.rb version 1.1.33 written by Minero Aoki <aamine@dp.u-netsurf.ne.jp> diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index bfd15e71de..5a7d4b79b0 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -1,6 +1,6 @@ =begin -= net/protocol.rb version 1.1.32 += net/protocol.rb version 1.1.33 written by Minero Aoki <aamine@dp.u-netsurf.ne.jp> @@ -65,7 +65,7 @@ module Net class Protocol - Version = '1.1.32' + Version = '1.1.33' class << self diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index 9679984e2c..e45d291648 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -1,6 +1,6 @@ =begin -= net/smtp.rb version 1.1.32 += net/smtp.rb version 1.1.33 written by Minero Aoki <aamine@dp.u-netsurf.ne.jp> |