Permalink
Browse files

set no_proxy for LWPish. HTTP::Tiny automatically uses $ENV{http_proxy}

  • Loading branch information...
1 parent 5a1bd60 commit bb5f9cab31d6262b98edd5f10660163fc36020ee @kazeburo kazeburo committed Aug 15, 2013
Showing with 3 additions and 4 deletions.
  1. +1 −1 cpanfile
  2. +1 −1 lib/Plack/Test/Server.pm
  3. +1 −2 lib/Plack/Test/Suite.pm
View
@@ -14,7 +14,7 @@ requires 'Try::Tiny';
requires 'URI', '1.59';
requires 'parent';
requires 'Apache::LogFormat::Compiler', '0.12';
-requires 'HTTP::Tiny', 0.024;
+requires 'HTTP::Tiny', 0.034;
on test => sub {
requires 'Test::More', '0.88';
View
@@ -13,7 +13,7 @@ sub test_psgi {
my $client = delete $args{client} or croak "client test code needed";
my $app = delete $args{app} or croak "app needed";
- my $ua = delete $args{ua} || Plack::LWPish->new;
+ my $ua = delete $args{ua} || Plack::LWPish->new( no_proxy => [qw/127.0.0.1/] );
test_tcp(
client => sub {
View
@@ -754,8 +754,7 @@ sub run_server_tests {
test_tcp(
client => sub {
my $port = shift;
-
- my $ua = Plack::LWPish->new;
+ my $ua = Plack::LWPish->new( no_proxy => [qw/127.0.0.1/] );
for my $i (0..$#TEST) {
my $test = $TEST[$i];
note $test->[0];

0 comments on commit bb5f9ca

Please sign in to comment.