[FIX] correct the void get values

This commit is contained in:
Edouard DUPIN 2024-05-09 00:11:14 +02:00
parent 183906dc97
commit 7c087fcd8f

View File

@ -277,7 +277,7 @@ export function RESTRequest({ restModel, restConfig, data, params, queries, call
action.then((response: Response) => {
if (response.status >= 200 && response.status <= 299) {
const contentType = response.headers.get('Content-Type');
if (restModel.accept !== contentType) {
if (!isNullOrUndefined(restModel.accept) && restModel.accept !== contentType) {
reject({
time: Date().toString(),
status: 901,