From 6db4af66149fde6c5fdb8ffbc8438cf027f774e6 Mon Sep 17 00:00:00 2001
From: dangered wolf <d@ngeredwolf.me>
Date: Mon, 11 Sep 2023 03:47:29 -0400
Subject: [PATCH] Fix these types for test

---
 src/worker.ts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/worker.ts b/src/worker.ts
index 29d4fd5..f081b60 100644
--- a/src/worker.ts
+++ b/src/worker.ts
@@ -336,9 +336,9 @@ const versionRequest = async (request: IRequest) => {
       tlsversion: (request.cf?.tlsVersion as string) ?? 'Unknown TLS Version',
       ip:
         request.headers.get('x-real-ip') ?? request.headers.get('cf-connecting-ip') ?? 'Unknown IP',
-      city: request.cf?.city ?? 'Unknown City',
-      region: request.cf?.region ?? request.cf?.country ?? 'Unknown Region',
-      country: request.cf?.country ?? 'Unknown Country',
+      city: request.cf?.city as string ?? 'Unknown City',
+      region: request.cf?.region as string ?? request.cf?.country ?? 'Unknown Region',
+      country: request.cf?.country as string ?? 'Unknown Country',
       asn: `AS${request.cf?.asn ?? '??'} (${request.cf?.asOrganization ?? 'Unknown ASN'})`,
       ua: sanitizeText(request.headers.get('user-agent') ?? 'Unknown User Agent')
     }),