summaryrefslogtreecommitdiffstats
path: root/t/02-inputs.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-01-11 13:57:50 -0600
committerJesse Luehrs <doy@tozt.net>2011-01-11 14:02:47 -0600
commit935312b7f10857f0ece01697355ec7bf2247e461 (patch)
tree8c8848f165d4fa5dd9d3171b3a634cf371fd43c2 /t/02-inputs.t
parent811c7f969dba4962943550c0b74e5ad179860683 (diff)
downloadplack-client-935312b7f10857f0ece01697355ec7bf2247e461.tar.gz
plack-client-935312b7f10857f0ece01697355ec7bf2247e461.zip
just save the entire original uri
Diffstat (limited to 't/02-inputs.t')
-rw-r--r--t/02-inputs.t8
1 files changed, 2 insertions, 6 deletions
diff --git a/t/02-inputs.t b/t/02-inputs.t
index 3b7260a..094aec6 100644
--- a/t/02-inputs.t
+++ b/t/02-inputs.t
@@ -135,9 +135,7 @@ sub test_responses {
$uri->path('/') unless $uri->path; # XXX: work around plack bug
my $env = HTTP::Request->new(GET => $uri)->to_psgi;
$env->{CONTENT_LENGTH} = 0; # XXX: work around plack bug
- $env->{'plack.client.url_scheme'} = $base->scheme;
- $env->{'plack.client.app_name'} = $base->authority
- if $base->scheme eq 'psgi-local';
+ $env->{'plack.client.original_uri'} = $base;
response_is(
$client->request($env),
200,
@@ -153,9 +151,7 @@ sub test_responses {
$uri->path('/') unless $uri->path; # XXX: work around plack bug
my $env = HTTP::Request->new(GET => $uri)->to_psgi;
$env->{CONTENT_LENGTH} = 0; # XXX: work around plack bug
- $env->{'plack.client.url_scheme'} = $base->scheme;
- $env->{'plack.client.app_name'} = $base->authority
- if $base->scheme eq 'psgi-local';
+ $env->{'plack.client.original_uri'} = $base;
response_is(
$client->request(Plack::Request->new($env)),
200,