Skip to content

Commit

Permalink
Fix http_post(): the URL needs to be preserved
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Melo <melo@simplicidade.org>
  • Loading branch information
melo committed Jun 28, 2008
1 parent 4f70857 commit 988fb03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AnyEvent-HTTP/HTTP.pm
Expand Up @@ -468,7 +468,8 @@ sub http_head($@) {
}

sub http_post($$@) {
unshift @_, "POST", "body";
my $uri = shift;
unshift @_, "POST", shift, "body";
&http_request
}

Expand Down

0 comments on commit 988fb03

Please sign in to comment.