This commit is contained in:
xiaojunnuo
2024-11-01 01:02:13 +08:00
parent a2af45e1c7
commit 5160b9fbd6

View File

@@ -19,7 +19,7 @@ export class HttpError extends Error {
}
super(error.message || error.response?.statusText);
if (error?.message?.indexOf('ssl3_get_record:wrong version number') >= 0) {
if (error?.message?.indexOf && error?.message?.indexOf('ssl3_get_record:wrong version number') >= 0) {
this.message = 'http协议错误服务端要求http协议请检查是否使用了https请求';
}