Subject: | 401 unauthorized if fedora port is 443 |
Date: | Thu, 2 Apr 2015 18:41:25 +0000 |
To: | "bug-FedoraCommons-APIM [...] rt.cpan.org" <bug-FedoraCommons-APIM [...] rt.cpan.org> |
From: | Shinwoo Kim <sk274 [...] cornell.edu> |
Hello,
If the fedora port is 443, the response is always 401 unauthorized.
The _get_proxy subroutine appears to be causing the problem.
When I change the code to only append port if it is not 80 and not 443, it seems to work fine.
sub _get_proxy {
my ($self) = @_;
my $proxy = "$self->{'protocol'}://".
$self->{usr}.":".$self->{pwd}.
"\@".$self->{host};
if ($self->{'port'} != 80 && $self->{'port'} != 443) {
$proxy .= ":".$self->{port};
}
$proxy .= "/fedora/services/access";
return $proxy;
}
Thanks,
Shinwoo