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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:466:    // Return the failure message.    if (con->request_ok) {    con->request_ok(con, @con->extra_args);    }    return;    }       // Install the timeout handler for the interval until    // the TLS connection is up.    con->init_async_timeout(); +  +  con->headers["connection"] = "keep-alive"; +  con->headers["content-length"] = "0"; +  con->host = url->host; +  con->port = url->port; +  con->https = 1; +  con->start_tls(0); +     con->con->set_nonblocking(0,    lambda() {    // Remove the timeout handler; it will be    // reinstated by do_async_method() below.    con->remove_async_timeout();    do_async_method(method, url, query_variables,    request_headers, con, data);    }, con->async_failed); -  -  con->headers["connection"] = "keep-alive"; -  con->headers["content-length"] = "0"; -  con->host = url->host; -  con->port = url->port; -  con->https = 1; -  con->start_tls(0); +    }      //! Low level asynchronous proxied HTTP call method.   //!   //! Makes an HTTP request through a proxy.   //!   //! @param proxy   //! URL for the proxy.   //!   //! @param user