Permalink
Browse files

Fix `http_post()`: the URL needs to be preserved

Signed-off-by: Pedro Melo <melo@simplicidade.org>
  • Loading branch information...
1 parent 4f70857 commit 988fb03b2eb1b03ec8b5720daaccb584a0ffa12d @melo committed Jun 28, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 AnyEvent-HTTP/HTTP.pm
View
@@ -468,7 +468,8 @@ sub http_head($@) {
}
sub http_post($$@) {
- unshift @_, "POST", "body";
+ my $uri = shift;
+ unshift @_, "POST", shift, "body";
&http_request
}

0 comments on commit 988fb03

Please sign in to comment.