From 9246d4125fff9c13d8bb514be66fb37e0a5d095d Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Thu, 21 Nov 2024 16:13:30 +0800 Subject: [PATCH 1/2] fix: Ask for uncompressed API response --- src/ipinfoWrapper.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ipinfoWrapper.ts b/src/ipinfoWrapper.ts index 90b09d5..b25c0d3 100644 --- a/src/ipinfoWrapper.ts +++ b/src/ipinfoWrapper.ts @@ -112,7 +112,8 @@ export default class IPinfoWrapper { const request = Object.assign( { timeout: this.timeout, - method: "GET" + method: "GET", + compress: false, }, init, { headers: Object.assign(headers, init.headers) } From 81dab45c22f6998b7ef03c29307289e804ddaccc Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Thu, 21 Nov 2024 16:14:21 +0800 Subject: [PATCH 2/2] style: Lint with prettier --- src/ipinfoWrapper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipinfoWrapper.ts b/src/ipinfoWrapper.ts index b25c0d3..7baa88b 100644 --- a/src/ipinfoWrapper.ts +++ b/src/ipinfoWrapper.ts @@ -113,7 +113,7 @@ export default class IPinfoWrapper { { timeout: this.timeout, method: "GET", - compress: false, + compress: false }, init, { headers: Object.assign(headers, init.headers) }