Merge branch 'auth' of codeup.aliyun.com:61c14a7efa282c88e103c23f/oak-domain into auth
This commit is contained in:
commit
f20a4d796a
|
|
@ -56,7 +56,7 @@ var SimpleConnector = /** @class */ (function (_super) {
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
message = response.headers.get('oak-message');
|
message = response.headers.get('oak-message');
|
||||||
responseType = response.headers.get('Content-Type');
|
responseType = response.headers.get('Content-Type') || response.headers.get('content-type');
|
||||||
if (!(responseType === null || responseType === void 0 ? void 0 : responseType.toLocaleLowerCase().match(/application\/json/i))) return [3 /*break*/, 3];
|
if (!(responseType === null || responseType === void 0 ? void 0 : responseType.toLocaleLowerCase().match(/application\/json/i))) return [3 /*break*/, 3];
|
||||||
return [4 /*yield*/, response.json()];
|
return [4 /*yield*/, response.json()];
|
||||||
case 2:
|
case 2:
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ export class SimpleConnector<ED extends EntityDict, BackCxt extends AsyncContext
|
||||||
}
|
}
|
||||||
|
|
||||||
const message = response.headers.get('oak-message');
|
const message = response.headers.get('oak-message');
|
||||||
const responseType = response.headers.get('Content-Type');
|
const responseType = response.headers.get('Content-Type') || response.headers.get('content-type');
|
||||||
if (responseType?.toLocaleLowerCase().match(/application\/json/i)) {
|
if (responseType?.toLocaleLowerCase().match(/application\/json/i)) {
|
||||||
const {
|
const {
|
||||||
exception,
|
exception,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue