[3.6] bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) by vstinner · Pull Request #2289 · python/cpython
vstinner
changed the title
[3.6] urllib: Simplify splithost by calling into urlparse. (#1849)
[3.6] bpo-30500:urllib: Simplify splithost by calling into urlparse. (#1849)
vstinner
changed the title
[3.6] bpo-30500:urllib: Simplify splithost by calling into urlparse. (#1849)
[3.6] bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849)
ned-deily pushed a commit to ned-deily/cpython that referenced this pull request
Jul 7, 2017…on#1849) (python#2289) 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 90e01e5) (cherry picked from commit 536c1f1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters