get_url headers param values parsing (#4245)

reviewable/pr18780/r1
Roman 8 years ago committed by René Moser
parent b5ad8b83be
commit 78adaf2116

@ -291,7 +291,7 @@ def main():
# Parse headers to dict
if module.params['headers']:
try:
headers = dict(item.split(':') for item in module.params['headers'].split(','))
headers = dict(item.split(':', 1) for item in module.params['headers'].split(','))
except:
module.fail_json(msg="The header parameter requires a key:value,key:value syntax to be properly parsed.")
else:

Loading…
Cancel
Save