Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision a2e18051b724b5d7433de53fb4c8c94ff93e3008 authored by Guido van Rossum on 17 March 1999, 22:30:10 UTC, committed by Guido van Rossum on 17 March 1999, 22:30:10 UTC
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.
1 parent 154d909
Tip revision: a2e18051b724b5d7433de53fb4c8c94ff93e3008 authored by Guido van Rossum on 17 March 1999, 22:30:10 UTC
Delete non-standard-conforming code in urljoin() that would use the
Delete non-standard-conforming code in urljoin() that would use the
Tip revision: a2e1805
File | Mode | Size |
---|---|---|
BeOS | ||
Demo | ||
Doc | ||
Grammar | ||
Include | ||
Lib | ||
Mac | ||
Misc | ||
Modules | ||
Objects | ||
PC | ||
PCbuild | ||
Parser | ||
Python | ||
Tools | ||
.hgtags | -rw-r--r-- | 1.4 KB |
Makefile.in | -rw-r--r-- | 17.9 KB |
README | -rw-r--r-- | 36.1 KB |
acconfig.h | -rw-r--r-- | 3.7 KB |
config.h.in | -rw-r--r-- | 11.8 KB |
configure | -rwxr-xr-x | 129.3 KB |
configure.in | -rw-r--r-- | 23.3 KB |
install-sh | -rwxr-xr-x | 2.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...