pike.git / lib / modules / Standards.pmod / URI.pike

version» Context lines:

pike.git/lib/modules/Standards.pmod/URI.pike:258:    * to lowercase in scheme names (e.g., allow "HTTP" as well as    * "http") for the sake of robustness but should only produce    * lowercase scheme names for consistency.    */    scheme = lower_case(scheme);    }    DEBUG("Found scheme %O", scheme);       // DWIM for "www.cnn.com" style input, when parsed in the context of    // base "http://". -  if( !scheme && this::base_uri?->scheme && -  !sizeof(this::base_uri->authority) ) +  if( !has_prefix(uri, "//") && !scheme && this::base_uri?->scheme && +  !sizeof(this::base_uri->authority) && +  !sizeof(this::base_uri->path))    { -  +  DEBUG("DWIM authority: %O\n", uri);    uri = "//"+uri;    }       // Parse authority/login    //    // hier-part = "//" authority path-abempty / path-absolute    // / path-rootless / path-empty    if(sscanf(uri, "//%[^/]%s", authority, uri))    {    DEBUG("Found authority %O", authority);