diff --git a/arcjet-next/index.ts b/arcjet-next/index.ts index 558fb0007..2a05257ee 100644 --- a/arcjet-next/index.ts +++ b/arcjet-next/index.ts @@ -219,7 +219,7 @@ export default function arcjetNext( const host = headers.get("host") ?? ""; let path = ""; let query = ""; - let protocol = ""; + let protocol = ""; // TODO(#36): nextUrl has formatting logic when you `toString` but // we don't account for that here if (typeof request.nextUrl !== "undefined") { @@ -228,11 +228,11 @@ export default function arcjetNext( query = request.nextUrl.search; } if (typeof request.nextUrl.protocol !== "undefined") { - protocol = request.nextUrl.protocol + protocol = request.nextUrl.protocol; } } else { if (typeof request.socket?.encrypted !== "undefined") { - protocol = request.socket.encrypted ? "https:" : "http:" + protocol = request.socket.encrypted ? "https:" : "http:"; } else { protocol = "http:"; }