get_url headers param values parsing (#4245)

pull/18777/head
Roman 8 years ago committed by Matt Clay
parent 7b66bdc1c4
commit 7b547e3e0b

@ -290,7 +290,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