diff --git a/src/index.ts b/src/index.ts index 012dba9..dccdf27 100644 --- a/src/index.ts +++ b/src/index.ts @@ -154,11 +154,10 @@ function wrapper ( let routing = false let encrypted = false let trust: TrustStrategy | undefined - let http = false switch (parsedUrl.scheme) { case 'http': case 'https': - http = true + encrypted = true break default: throw new Error(`Unknown scheme: ${parsedUrl.scheme ?? 'null'}`)