• Guido van Rossum's avatar
    Delete non-standard-conforming code in urljoin() that would use the · a2e18051
    Guido van Rossum yazdı
    netloc from the base url as the default netloc for the resulting url
    even if the schemes differ.
    
    Once upon a time, when the web was wild, this was a valuable hack
    because some people had a URL referencing an ftp server colocated with
    an http server without having the host in the ftp URL (so they could
    replicate it or change the hostname easily).
    
    More recently, after the file: scheme got added back to the list of
    schemes that accept a netloc, it turns out that this caused weirdness
    when joining an http: URL with a file: URL -- the resulting file: URL
    would always inherit the host from the http: URL because the file:
    scheme supports a netloc but in practice never has one.
    
    There are two reasons to get rid of the old, once-valuable hack,
    instead of removing the file: scheme from the uses_netloc list.  One,
    the RFC says that file: uses the netloc syntax, and does not endorse
    the old hack.  Two, neither netscape 4.5 nor IE 4.0 support the old
    hack.
    a2e18051
Adı
Son kayıt (commit)
Son güncelleme
BeOS Loading commit data...
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.hgtags Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...