From 7c087fcd8fe44ad288c4ae6c774c90df207eb62b Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Thu, 9 May 2024 00:11:14 +0200 Subject: [PATCH] [FIX] correct the void get values --- src/resources/rest-tools.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/rest-tools.ts b/src/resources/rest-tools.ts index f2e8437..b8c6699 100644 --- a/src/resources/rest-tools.ts +++ b/src/resources/rest-tools.ts @@ -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,