about summary refs log tree commit homepage
path: root/t/cgi.t
diff options
context:
space:
mode:
Diffstat (limited to 't/cgi.t')
-rw-r--r--t/cgi.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/cgi.t b/t/cgi.t
index bd92ca36..2e2476d7 100644
--- a/t/cgi.t
+++ b/t/cgi.t
@@ -225,6 +225,8 @@ sub cgi_run {
         my %env = (
                 PATH_INFO => $_[0],
                 QUERY_STRING => $_[1] || "",
+                SCRIPT_NAME => '',
+                REQUEST_URI => $_[0] . ($_[1] ? "?$_[1]" : ''),
                 REQUEST_METHOD => $_[2] || "GET",
                 GATEWAY_INTERFACE => 'CGI/1.1',
                 HTTP_ACCEPT => '*/*',