summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--lib/webrick/cgi.rb1
-rw-r--r--lib/webrick/httprequest.rb4
3 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 63d7a998a5..d9944bb32b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Wed Sep 28 15:14:19 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/cgi.rb (WEBrick::CGI#start): req.query_string should
+ refer the value of QUERY_STRING. [ruby-list:41186]
+
+ * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#query_string=):
+ add new method.
+
Wed Sep 28 10:45:44 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tcltklib/tcltklib.c: cannot compile with Tcl/Tk8.0.x
diff --git a/lib/webrick/cgi.rb b/lib/webrick/cgi.rb
index 2b6d2313b9..ff5f7a6102 100644
--- a/lib/webrick/cgi.rb
+++ b/lib/webrick/cgi.rb
@@ -66,6 +66,7 @@ module WEBrick
req.parse(sock)
req.script_name = (env["SCRIPT_NAME"] || File.expand_path($0)).dup
req.path_info = (env["PATH_INFO"] || "").dup
+ req.query_string = env["QUERY_STRING"]
req.user = env["REMOTE_USER"]
res.request_method = req.request_method
res.request_uri = req.request_uri
diff --git a/lib/webrick/httprequest.rb b/lib/webrick/httprequest.rb
index a9f0c51f9d..297866f47a 100644
--- a/lib/webrick/httprequest.rb
+++ b/lib/webrick/httprequest.rb
@@ -27,8 +27,8 @@ module WEBrick
attr_reader :request_method, :unparsed_uri, :http_version
# Request-URI
- attr_reader :request_uri, :host, :port, :path, :query_string
- attr_accessor :script_name, :path_info
+ attr_reader :request_uri, :host, :port, :path
+ attr_accessor :script_name, :path_info, :query_string
# Header and entity body
attr_reader :raw_header, :header, :cookies