Don't rely on netloc for determining hostname and port, just use hostname and port (#56270)

* Add changelog fragment
* Fix IPv6 address parsing for py2.6, and add tests
* make sure hostname isn't None
This commit is contained in:
Matt Martz
2019-05-20 15:50:55 -05:00
committed by Sam Doran
parent 66bfa27685
commit 493cf817a9
3 changed files with 33 additions and 13 deletions

View File

@@ -0,0 +1,4 @@
bugfixes:
- urls - Handle redirects properly for IPv6 address by not splitting on ``:``
and rely on already parsed hostname and port values
(https://github.com/ansible/ansible/issues/56258)