summaryrefslogtreecommitdiff
path: root/www/p5-Test-HTTP/patch-lib__Test__HTTP.pm
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-01-11 03:44:33 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-01-11 03:44:33 +0000
commit113e33a964c3e8ec8bd94eda635b30f5f61a3405 (patch)
tree341d1c9c70d95a1c6cc67d886540a435500eb6fb /www/p5-Test-HTTP/patch-lib__Test__HTTP.pm
parent- Update to 0.26 (diff)
- simplify dependencies
- encode_utf8($uri) only when needed - bump PORTREVISION PR: ports/141178 Submitted by: leeym Approved by: maintainer timeout (skv; > 1 month)
Diffstat (limited to 'www/p5-Test-HTTP/patch-lib__Test__HTTP.pm')
-rw-r--r--www/p5-Test-HTTP/patch-lib__Test__HTTP.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/p5-Test-HTTP/patch-lib__Test__HTTP.pm b/www/p5-Test-HTTP/patch-lib__Test__HTTP.pm
new file mode 100644
index 000000000000..d4ee8e5ac8b9
--- /dev/null
+++ b/www/p5-Test-HTTP/patch-lib__Test__HTTP.pm
@@ -0,0 +1,11 @@
+--- lib/Test/HTTP.pm.orig 2009-12-04 12:44:29.000000000 -0800
++++ lib/Test/HTTP.pm 2009-12-04 12:45:12.000000000 -0800
+@@ -234,7 +234,7 @@
+ sub new_request {
+ my ( $self, $method, $uri, @args ) = @_;
+ $self->request(
+- HTTP::Request->new( $method => encode_utf8($uri), @args ) );
++ HTTP::Request->new( $method => (is_utf8($uri) ? encode_utf8($uri) : $uri), @args ) );
+ $self->request->authorization_basic($self->username, $self->password)
+ if (defined $self->username) || (defined $self->password);
+ return $self->request;