Branch: Tag:

2014-10-22

2014-10-22 16:39:21 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Standards.URI: Reduce DWIM.

Fixes issues with Roxen.

265:       // 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;    }