Subject: | CoClHttp looks in both HTTP_PROXY and http_proxy, remove both in 08_discard.t |
Date: | Mon, 7 Aug 2006 09:45:58 +1000 |
To: | bug-POE-Component-Client-HTTP [...] rt.cpan.org |
From: | Tony Cook <tony [...] develop-help.com> |
When run with the CPAN shell t/08_discard.t was printing the ok
for the first (and only test) but then never exiting.
The CPAN shell sets http_proxy from its configuration. The following
code fixes the lockup
--- t/08_discard.t~ 2006-03-24 10:46:18.000000000 +1100
+++ t/08_discard.t 2006-08-07 09:40:27.000000000 +1000
@@ -23,6 +23,7 @@
# Don't proxy, because localhost takes on new meaning.
BEGIN {
delete $ENV{HTTP_PROXY};
+ delete $ENV{http_proxy};
}
POE::Session->create(
(also attached)
Message body is not shown because sender requested not to inline it.