mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
* fixed isinstance error
* added changelog fragment
(cherry picked from commit bfd6d2b3aa
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
89498d3650
commit
5cdc70bda9
2 changed files with 3 additions and 1 deletions
|
@ -389,7 +389,7 @@ def request(
|
|||
auth = to_text(base64.b64encode(to_bytes('{0}:{1}'.format(user, passwd), errors='surrogate_or_strict')))
|
||||
|
||||
headers = {}
|
||||
if isinstance(additional_headers) == dict:
|
||||
if isinstance(additional_headers, dict):
|
||||
headers = additional_headers.copy()
|
||||
headers.update({
|
||||
"Content-Type": content_type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue