Branch: Tag:

2016-05-20

2016-05-20 14:17:21 by Pontus Östlund <ponost@roxen.com>

Protocols.HTTP.Session: Added the port to the host header if the port isn't the standard port. Redirects on non-standard ports broke.

105:       request_headers->host=url->host;    +  if (url->scheme == "http" && url->port != 80) { +  request_headers->host += ":" + url->port; +  } +  else if (url->scheme == "https" && url->port != 443) { +  request_headers->host += ":" + url->port; +  } +     if (extra_headers)    request_headers|=extra_headers;