minor style fix

This commit is contained in:
Maximilian Hils 2021-06-17 20:02:40 +02:00
parent 5c0d700839
commit c075d33997

View file

@ -131,11 +131,11 @@ class NextLayer:
return ret
# 3. Setup the HTTP layer for a regular HTTP proxy or an upstream proxy.
if any([
s(modes.HttpProxy),
if (
s(modes.HttpProxy) or
# or a "Secure Web Proxy", see https://www.chromium.org/developers/design-documents/secure-web-proxy
s(modes.HttpProxy, layers.ClientTLSLayer),
]):
s(modes.HttpProxy, layers.ClientTLSLayer)
):
if ctx.options.mode == "regular":
return layers.HttpLayer(context, HTTPMode.regular)
else: