Branch: Tag:

2011-04-27

2011-04-27 13:26:35 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Protocols.HTTP: do_{,async_}proxied_method() now support falling back to no proxy.

87:    void|mapping(string:string|array(string)) request_headers,    void|Protocols.HTTP.Query con, void|string data)   { +  if (!proxy || (proxy == "")) { +  return do_method(method, url, query_variables, request_headers, con, data); +  }    // Make sure we don't propagate our changes to the    // url and proxy objects below to the caller.    proxy = Standards.URI(proxy);
457:    void|mapping(string:string|array(string)) request_headers,    Protocols.HTTP.Query con, void|string data)   { +  if (!proxy || (proxy == "")) { +  do_async_method(method, url, query_variables, request_headers, con, data); +  return; +  }    // Make sure we don't propagate our changes to the    // url and proxy objects below to the caller.    proxy = Standards.URI(proxy);