Fix regex for protocol prefix

I was obviously too tired back then.
parent 2c974e12
Pipeline #54884801 passed with stages
in 1 minute and 45 seconds
......@@ -20,7 +20,7 @@ def transform_host_name(host: str) -> str:
`requests` requires a protocol in the URL, so we add `https://` by default unless
something else was specified.
return host if'^http(?s)://', host) is not None else 'https://%s' % host
return host if'^http(?:s)://', host) is not None else 'https://%s' % host
def ensure_is_hydra(response: Response) -> bool:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment