Fixed SCRIPT_NAME bug thanks to shenme
Christian Hansen [Sun, 16 Oct 2005 21:33:54 +0000 (21:33 +0000)]
lib/HTTP/Request/AsCGI.pm

index 78cb41d..70cf9c8 100644 (file)
@@ -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',