X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F05env.t;h=ca6719f566bd8fbad79098e0409021a0c89ddebf;hb=11454d47bf23db4dcb5090c2b986b71d71deaf4b;hp=209d61e62d4271a59373fb527080dbe1346e62a3;hpb=9a0e0b26d03e85829929c571ca08a3d3a9a0df45;p=catagits%2FHTTP-Request-AsCGI.git diff --git a/t/05env.t b/t/05env.t index 209d61e..ca6719f 100644 --- a/t/05env.t +++ b/t/05env.t @@ -8,7 +8,7 @@ use warnings; use HTTP::Request; use HTTP::Request::AsCGI; -my $r = HTTP::Request->new( GET => 'http://www.host.com/cgi-bin/script.cgi/my/path/?a=1&b=2', [ 'X-Test' => 'Test' ] ); +my $r = HTTP::Request->new( GET => 'http://www.host.com/cgi-bin/script.cgi/my%20path/?a=1&b=2', [ 'X-Test' => 'Test' ] ); my %e = ( SCRIPT_NAME => '/cgi-bin/script.cgi' ); my $c = HTTP::Request::AsCGI->new( $r, %e ); $c->stdout(undef); @@ -18,7 +18,7 @@ $c->setup; is( $ENV{GATEWAY_INTERFACE}, 'CGI/1.1', 'GATEWAY_INTERFACE' ); is( $ENV{HTTP_HOST}, 'www.host.com:80', 'HTTP_HOST' ); is( $ENV{HTTP_X_TEST}, 'Test', 'HTTP_X_TEST' ); -is( $ENV{PATH_INFO}, '/my/path/', 'PATH_INFO' ); +is( $ENV{PATH_INFO}, '/my path/', 'PATH_INFO' ); is( $ENV{QUERY_STRING}, 'a=1&b=2', 'QUERY_STRING' ); is( $ENV{SCRIPT_NAME}, '/cgi-bin/script.cgi', 'SCRIPT_NAME' ); is( $ENV{REQUEST_METHOD}, 'GET', 'REQUEST_METHOD' );