Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
blaine-arcjet committed Feb 8, 2024
1 parent ee38e70 commit aeb5003
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arcjet-next/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export default function arcjetNext<const Rules extends (Primitive | Product)[]>(
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") {
Expand All @@ -228,11 +228,11 @@ export default function arcjetNext<const Rules extends (Primitive | Product)[]>(
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:";
}
Expand Down

0 comments on commit aeb5003

Please sign in to comment.