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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:129: Inside #if constant(SSL.sslfile)
   // and use keep-alive to stack the real request on top.    proxy->path = url->host + ":" + url->port;    if (!proxy_headers) proxy_headers = ([]);    proxy_headers->connection = "keep-alive";    m_delete(proxy_headers, "authorization"); // Keep the proxy in the dark.    con = do_method("CONNECT", proxy, 0, proxy_headers);    con->data(0);    if (con->status/100 > 2) {    return con;    } -  con->headers["connect"] = "keep-alive"; +  con->headers["connection"] = "keep-alive";    con->headers["content-length"] = "0";    con->host = url->host;    con->port = url->port;    con->https = 1;    con->start_tls(1);    }    proxy_headers = request_headers;   #endif    } else {    error("Can't handle proxying of %O.\n", url->scheme);