Skip to content

Commit

Permalink
Append test for multibyte PATH_INFO. This is authority of the commit 0…
Browse files Browse the repository at this point in the history
  • Loading branch information
cho45 committed Dec 21, 2010
1 parent 8cc0d98 commit ff47b65
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/Plack/Test/Suite.pm
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,22 @@ our @TEST = (
];
},
],
[
'% encoding in PATH_INFO (outside of URI characters)',
sub {
my $cb = shift;
my $res = $cb->(GET "http://127.0.0.1/foo%E3%81%82");
is $res->content, "/foo\x{e3}\x{81}\x{82}";
},
sub {
my $env = shift;
return [
200,
[ 'Content-Type' => 'text/plain', ],
[ $env->{PATH_INFO} ],
];
},
],
[
'SERVER_PROTOCOL is required',
sub {
Expand Down

0 comments on commit ff47b65

Please sign in to comment.