Fixed issues with falsy returned URLs having a fixed :80 port on https redirects

Some openstack providers are using redirects on http requests. Those requests typically route to a https URL, but the returned URL is still on a fixed :80 port.

For example:
GET http://compute.mycloud.net:80/v2/...
returns a redirect URL to https://compute.mycloud.net:80/v2/

If so, the underlying TLS/SSL implementation of HTTPS will fail. This commit fixes this issue and "patches" the correct port (443) onto the redirect-target URL.