diff --git a/network/basics/get_url.py b/network/basics/get_url.py index 345ab81a106..6a85b161141 100644 --- a/network/basics/get_url.py +++ b/network/basics/get_url.py @@ -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: