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

version» Context lines:

pike.git/lib/modules/Standards.pmod/URI.pike:276:    * 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( !has_prefix(uri, "//") && !scheme && this::base_uri?->scheme && +  if( !has_prefix(uri, "//") && !scheme && this::base_uri->?scheme &&    this::base_uri->authority &&    !sizeof(this::base_uri->authority) &&    !sizeof(this::base_uri->path))    {    DEBUG("DWIM authority: %O\n", uri);    uri = "//"+uri;    }       // Parse authority/login    //