Subject: | HTTP::Daemon: get_request() builds, but never returns absolute request URI |
Hi there,
the get_request() method of HTTP::Daemon::ClientConn builds the URI for
the request object like this:
$uri = $HTTP::URI_CLASS->new($uri, $self->daemon->url);
where "$uri" is the path from the request after the HTTP method (as in
"GET /"), and $self->daemon->url is the absolute URL of the server.
Now the the 2nd argument to URI->new() is supposed to be the scheme, so
the URI that is returned here is *always a relative one*!
I think this is a bug, since "$self->daemon->url" explicitly builds an
absolute URI, even resolving the hostname, etc.
I suppose the line should read
$uri = $HTTP::URI_CLASS->new_abs($uri, $self->daemon->url);
?