X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fwrap-cgi.t;h=9a2d6b02e65a3d8407c715f652bd7acbf0276a12;hb=efa4a4342a71f4e26ad25301755b090be880e159;hp=05866863c12f9b622456d271a854104b1941cebf;hpb=c0c72ec290bad02174311dc28f010da1abfaa652;p=catagits%2FCatalyst-Controller-WrapCGI.git diff --git a/t/wrap-cgi.t b/t/wrap-cgi.t index 0586686..9a2d6b0 100644 --- a/t/wrap-cgi.t +++ b/t/wrap-cgi.t @@ -21,7 +21,7 @@ is($response->content, 'foo:bar bar:baz', 'POST to CGI'); $response = request POST '/cgi-bin/test.cgi', [ foo => 'bar', bar => 'baz', -], 'Content-Type' => 'form-data'; +], User_Agent => 'perl/5', Content_Type => 'form-data'; is($response->content, 'foo:bar bar:baz', 'POST to CGI (form-data)'); @@ -38,12 +38,13 @@ $response = request POST '/cgi-bin/test.cgi', ], quux => [ undef, quux => Content => 4 ], ], - 'Content-Type' => 'form-data'; + User_Agent => 'perl/5', + Content_Type => 'form-data'; is($response->content, 'foo:1 bar:2 baz:3 quux:4', 'POST with file upload'); $response = request '/cgi-bin/test_pathinfo.cgi/path/%2Finfo'; -is($response->content, '/path/%2Finfo', 'PATH_INFO is correct'); +is($response->content, '/path//info', 'PATH_INFO is correct'); $response = request '/cgi-bin/test_filepathinfo.cgi/path/%2Finfo'; is($response->content, '/test_filepath_info/path/%2Finfo',