From 08ec75e4272e0a92c615cc9735c67a0207420602 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Wed, 28 Sep 2005 06:16:59 +0000 Subject: [PATCH] * 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 --- ChangeLog | 8 ++++++++ lib/webrick/cgi.rb | 1 + lib/webrick/httprequest.rb | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 185ec66950..8e0db96320 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Wed Sep 28 15:12:28 2005 GOTOU Yuuzou + + * 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 * 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 c76d7b8633..ff140ca84e 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 508374adf6..ad9a983ef2 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