From: Christian Hansen Date: Sun, 16 Oct 2005 21:33:54 +0000 (+0000) Subject: Fixed SCRIPT_NAME bug thanks to shenme X-Git-Tag: v1.0~52 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FHTTP-Request-AsCGI.git;a=commitdiff_plain;h=c1e07bf152e51192dcd0b90342e2ba15e9af1fc3 Fixed SCRIPT_NAME bug thanks to shenme --- diff --git a/lib/HTTP/Request/AsCGI.pm b/lib/HTTP/Request/AsCGI.pm index 78cb41d..70cf9c8 100644 --- a/lib/HTTP/Request/AsCGI.pm +++ b/lib/HTTP/Request/AsCGI.pm @@ -28,7 +28,7 @@ sub new { GATEWAY_INTERFACE => 'CGI/1.1', HTTP_HOST => $request->uri->host_port, QUERY_STRING => $request->uri->query || '', - SCRIPT_NAME => $request->uri->path || '/', + SCRIPT_NAME => '/', SERVER_NAME => $request->uri->host, SERVER_PORT => $request->uri->port, SERVER_PROTOCOL => $request->protocol || 'HTTP/1.1',