From 08ec75e4272e0a92c615cc9735c67a0207420602 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Wed, 28 Sep 2005 06:16:59 +0000 Subject: * 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 --- lib/webrick/cgi.rb | 1 + lib/webrick/httprequest.rb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/webrick') 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 -- cgit v1.2.3