Branch: Tag:

2019-08-07

2019-08-07 13:35:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Protocols.HTTP: Set the Host header for proxied requests.

85:       proxy_headers["Proxy-Authorization"] = "Basic "    + MIME.encode_base64((user || "") + ":" + (password || "")); +  if (has_value(proxy->host, ":")) { +  proxy_headers["host"] = "[" + proxy->host + "]:" + proxy->port; +  } else { +  proxy_headers["host"] = proxy->host + ":" + proxy->port;    } -  +  }       if (url->scheme == "http") {    if( query_variables )
463:       proxy_headers["Proxy-Authorization"] = "Basic "    + MIME.encode_base64((user || "") + ":" + (password || "")); +  if (has_value(proxy->host, ":")) { +  proxy_headers["host"] = "[" + proxy->host + "]:" + proxy->port; +  } else { +  proxy_headers["host"] = proxy->host + ":" + proxy->port;    } -  +  }       if (url->scheme == "http") {    if( query_variables )