Fixing HTTPError case of fetch_url for Python 3 compatibility. (#45628)

* Fixing HTTPError case of fetch_url for Python 3 compatibility.

* Adding unit test.

* PEP8.

* Changelog.
This commit is contained in:
Felix Fontein
2018-09-19 17:53:16 +02:00
committed by Matt Martz
parent d34cf93f1a
commit bc69aeca7f
3 changed files with 7 additions and 3 deletions

View File

@@ -0,0 +1,2 @@
bugfixes:
- "fetch_url did not always return lower-case header names in case of HTTP errors (https://github.com/ansible/ansible/pull/45628)."