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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:453:    con->request_fail(con, @con->extra_args);   }      protected void https_proxy_connect_ok(Protocols.HTTP.Query con,    array(mixed) orig_cb_info,    Standards.URI url, string method,    mapping(string:string) query_variables,    mapping(string:string) request_headers,    string data)   { +  con->set_callbacks(@orig_cb_info);    if (con->status >= 300) {    // Proxy did not like us or failed to connect to the remote. -  https_proxy_connect_fail(con, orig_cb_info, url, method, -  query_variables, request_headers, -  data); +  // Return the failure message. +  if (con->request_ok) { +  con->request_ok(con, @con->extra_args); +  }    return;    } -  con->set_callbacks(@orig_cb_info); +        // Install the timeout handler for the interval until    // the TLS connection is up.    con->init_async_timeout();    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,