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
support-coreml
Meng Zhang 2023-05-30 23:36:54 -07:00 committed by GitHub
parent 5c0c1463de
commit bd5fd0592a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -37,8 +37,7 @@ export class TabbyAgent extends EventEmitter implements Agent {
private async ping(tries: number = 0): Promise<boolean> {
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) {