From 94763801f3387d627ab836de2b0328a9cfc61a53 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Sun, 10 Jul 2005 17:56:16 +0000 Subject: * lib/webrick/cgi.rb (WEBrick::CGI::Socket#request_line): mistook in merging the patch of [ruby-dev:26235] at revision 1.4.2.6. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/webrick/cgi.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/webrick/cgi.rb b/lib/webrick/cgi.rb index 5104715b2d..29fa67d188 100644 --- a/lib/webrick/cgi.rb +++ b/lib/webrick/cgi.rb @@ -148,9 +148,9 @@ module WEBrick def request_line meth = @env["REQUEST_METHOD"] || "GET" - url = (@env["SCRIPT_NAME"] || File.expand_path($0)).dup - url << @env["PATH_INFO"].to_s unless url = @env["REQUEST_URI"] + url = (@env["SCRIPT_NAME"] || File.expand_path($0)).dup + url << @env["PATH_INFO"].to_s url = WEBrick::HTTPUtils.escape_path(url) if query_string = @env["QUERY_STRING"] unless query_string.empty? -- cgit v1.2.3