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> {
|
private async ping(tries: number = 0): Promise<boolean> {
|
||||||
try {
|
try {
|
||||||
const response = await axios.get(`${this.serverUrl}/`);
|
const response = await axios.get(this.serverUrl);
|
||||||
assert(response.status == 200);
|
|
||||||
this.changeStatus("ready");
|
this.changeStatus("ready");
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue