diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-28 06:16:59 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-28 06:16:59 +0000 |
| commit | 15562e89c0db92087a4e3310c162f91c35ebce94 (patch) | |
| tree | c0e5799831d33905bb60795d18c32997d4cb075b | |
| parent | 78c3ac8cb1d6855d95e70b94a66829ffa0c14700 (diff) | |
| download | ruby-15562e89c0db92087a4e3310c162f91c35ebce94.tar.gz ruby-15562e89c0db92087a4e3310c162f91c35ebce94.tar.xz ruby-15562e89c0db92087a4e3310c162f91c35ebce94.zip | |
* 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.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 8 | ||||
| -rw-r--r-- | lib/webrick/cgi.rb | 1 | ||||
| -rw-r--r-- | lib/webrick/httprequest.rb | 4 |
3 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,11 @@ +Wed Sep 28 15:12:28 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/tk/tcltklib.c: cannot compile with Tcl/Tk8.0.x [ruby-dev:27335]. diff --git a/lib/webrick/cgi.rb b/lib/webrick/cgi.rb index c76d7b863..ff140ca84 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 508374adf..ad9a983ef 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 |
