1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@9328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
gotoyuzo 2005-09-28 06:16:59 +00:00
parent 3284ccb55a
commit 08ec75e427
3 changed files with 11 additions and 2 deletions

View file

@ -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].

View file

@ -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

View file

@ -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