Permalink
Browse files

RT#67486: Add port to Host hdr in client requests.

  • Loading branch information...
1 parent 978c926 commit d5a10436f0efebdae39aba7865c2e3a94d4d046a @rjray committed Aug 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/RPC/XML/Client.pm
View
@@ -248,7 +248,7 @@ sub send_request ## no critic (ProhibitExcessComplexity)
# Start by setting up the request-clone for using in this instance
$reqclone = $self->request->clone;
if (! $reqclone->header('Host')) {
- $reqclone->header(Host => URI->new($reqclone->uri)->host);
+ $reqclone->header(Host => URI->new($reqclone->uri)->host_port);
}
$can_compress = $self->compress; # Avoid making 4+ calls to the method
if ($self->compress_requests and $can_compress and

0 comments on commit d5a1043

Please sign in to comment.