[FIX] correct the void get values
This commit is contained in:
parent
183906dc97
commit
7c087fcd8f
@ -277,7 +277,7 @@ export function RESTRequest({ restModel, restConfig, data, params, queries, call
|
|||||||
action.then((response: Response) => {
|
action.then((response: Response) => {
|
||||||
if (response.status >= 200 && response.status <= 299) {
|
if (response.status >= 200 && response.status <= 299) {
|
||||||
const contentType = response.headers.get('Content-Type');
|
const contentType = response.headers.get('Content-Type');
|
||||||
if (restModel.accept !== contentType) {
|
if (!isNullOrUndefined(restModel.accept) && restModel.accept !== contentType) {
|
||||||
reject({
|
reject({
|
||||||
time: Date().toString(),
|
time: Date().toString(),
|
||||||
status: 901,
|
status: 901,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user