Staging
v0.5.1
https://github.com/python/cpython
Revision b0fba8874a4bd6bf4773e6efdbd8fa762e9f05bd authored by Victor Stinner on 20 June 2017, 13:37:24 UTC, committed by Ned Deily on 07 July 2017, 03:27:01 UTC
The current regex based splitting produces a wrong result. For example::

  http://abc#@def

Web browsers parse that URL as ``http://abc/#@def``, that is, the host
is ``abc``, the path is ``/``, and the fragment is ``#@def``.
(cherry picked from commit 90e01e50ef8a9e6c91f30d965563c378a4ad26de)
(cherry picked from commit 536c1f1246f4faa302f9f5613fc3444e7ae09b4a)
1 parent 00134f6
History
Tip revision: b0fba8874a4bd6bf4773e6efdbd8fa762e9f05bd authored by Victor Stinner on 20 June 2017, 13:37:24 UTC
bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2289)
Tip revision: b0fba88
File Mode Size
README -rw-r--r-- 67 bytes
_freeze_importlib.c -rw-r--r-- 4.4 KB
_testembed.c -rw-r--r-- 3.8 KB
python.c -rw-r--r-- 2.1 KB

README

back to top