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 checksupport-coreml
parent
5c0c1463de
commit
bd5fd0592a
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue