From bd5fd0592a9210c992daca20788cc6315ce05f8b Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Tue, 30 May 2023 23:36:54 -0700 Subject: [PATCH] fix: tabby agent shouldn't ping a url with trailing slash (#173) * fix: tabby agent shouldn't ping a url with trailing slash * remove status 200 check --- clients/tabby-agent/src/TabbyAgent.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clients/tabby-agent/src/TabbyAgent.ts b/clients/tabby-agent/src/TabbyAgent.ts index 19e1c4b..2ad5e19 100644 --- a/clients/tabby-agent/src/TabbyAgent.ts +++ b/clients/tabby-agent/src/TabbyAgent.ts @@ -37,8 +37,7 @@ export class TabbyAgent extends EventEmitter implements Agent { private async ping(tries: number = 0): Promise { try { - const response = await axios.get(`${this.serverUrl}/`); - assert(response.status == 200); + const response = await axios.get(this.serverUrl); this.changeStatus("ready"); return true; } catch (e) {