pike.git / lib / modules / Protocols.pmod / HTTP.pmod / module.pmod

version» Context lines:

pike.git/lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:78:       if( user || password )    {    if( !request_headers )    proxy_headers = ([]);    else    proxy_headers = request_headers + ([]);       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 )    url->set_query_variables( url->get_query_variables() +    query_variables );    string web_url = (string)url;       // Note: url object is wrecked here    url->host = proxy->host;    url->port = proxy->port;
pike.git/lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:456:       if( user || password )    {    if( !request_headers )    proxy_headers = ([]);    else    proxy_headers = request_headers + ([]);       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 )    url->set_query_variables( url->get_query_variables() +    query_variables );    string web_url = (string)url;       // Note: url object is wrecked here    url->host = proxy->host;    url->port = proxy->port;