summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-30 19:18:06 +0000
committerwakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-30 19:18:06 +0000
commitc0c9859fcb25838a9971f008c61056709bffcbd6 (patch)
tree0f47d879ec304a9bdd09fccc557c9d362a08b4cc
parentcdc18328b2a81fb83940232ebb2142f8bfd5d7fd (diff)
Wed May 31 04:06:41 2000 Wakou Aoyama <wakou@fsinet.or.jp>
* lib/cgi.rb: change: CGI#out() if "HEAD" == REQUEST_METHOD then output only HTTP header. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog10
-rw-r--r--lib/cgi.rb15
2 files changed, 20 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index e9ce725ddf..39509c6d7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,13 @@
+Wed May 31 04:06:41 2000 Wakou Aoyama <wakou@fsinet.or.jp>
+
+ * lib/cgi.rb: change: CGI#out()
+ if "HEAD" == REQUEST_METHOD then output only HTTP header.
+
Wed May 24 16:03:06 2000 Wakou Aoyama <wakou@fsinet.or.jp>
- * lib/cgi.rb bug fix: CGI::escape(), CGI::Cookie::new()
- * lib/net/telnet.rb improve: binmode(), telnetmode() interface
+ * lib/cgi.rb: bug fix: CGI::escape(), CGI::Cookie::new()
+
+ * lib/net/telnet.rb: improve: binmode(), telnetmode() interface
Tue May 23 08:36:24 2000 Yukihiro Matsumoto <matz@netlab.co.jp>
diff --git a/lib/cgi.rb b/lib/cgi.rb
index 66336e606e..a8e4bee1fa 100644
--- a/lib/cgi.rb
+++ b/lib/cgi.rb
@@ -5,7 +5,7 @@ $Date$
cgi.rb
-Version 1.40
+Version 1.50
Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
Copyright (C) 2000 Information-technology Promotion Agency, Japan
@@ -185,7 +185,7 @@ class CGI
EOL = CR + LF
v = $-v
$-v = false
- VERSION = "1.40"
+ VERSION = "1.50"
RELEASE_DATE = "$Date$"
$-v = v
@@ -513,6 +513,8 @@ status:
"my_header1" => "my_value",
"my_header2" => "my_value"}){ "string" }
+if "HEAD" == REQUEST_METHOD then output only HTTP header.
+
if charset is "iso-2022-jp" or "euc-jp" or "shift_jis" then
convert string charset, and set language to "ja".
@@ -541,7 +543,7 @@ convert string charset, and set language to "ja".
output = stdoutput
output.binmode if defined? output.binmode
output.print header(options)
- output.print content
+ output.print content unless "HEAD" == env_table['REQUEST_METHOD']
end
@@ -1905,6 +1907,13 @@ end
== HISTORY
+=== Version 1.50 - wakou
+
+2000/05/30 19:04:08
+
+- CGI#out()
+ if "HEAD" == REQUEST_METHOD then output only HTTP header.
+
=== Version 1.40 - wakou
2000/05/24 06:58:51