commit | d4324baca4c03eb8d55446cd1b74b32ec5633af5 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Tue Jun 20 16:20:36 2017 +0200 |
committer | GitHub <noreply@github.com> | Tue Jun 20 16:20:36 2017 +0200 |
tree | 4144e9fae2d0d6913340f9c0ff9c96612abd0f26 | |
parent | b39a7481ee7e6166d6d2b252a7a514b1f6553dfa [diff] |
bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2294) 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)