From 03c4b657ca62d429fcb342252105cbc1fe60c833 Mon Sep 17 00:00:00 2001 From: nidhikachhawa24 Date: Tue, 4 Jun 2024 11:01:45 +0530 Subject: [PATCH] changes done for mimetype --- src/app/services/api/http.capacitor.adapter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/services/api/http.capacitor.adapter.ts b/src/app/services/api/http.capacitor.adapter.ts index e457650..231b842 100644 --- a/src/app/services/api/http.capacitor.adapter.ts +++ b/src/app/services/api/http.capacitor.adapter.ts @@ -131,7 +131,8 @@ export class HttpCapacitorAdapter implements HttpClient { if (receivedData.data && receivedData.data.djp_contents !== null && receivedData.data.djp_contents !== undefined) { receivedData.data.djp_contents.forEach((item : any) => { - let mimetype = item?.url ? this.checkMimieType(item?.url) : 'text/html'; + // let mimetype = item?.url ? this.checkMimieType(item?.url) : 'text/html'; + let mimetype = this.checkMimieType(item?.url); // Traverse through the items array of each provider const content: SearchContentMetaData = { agegroup: item.agegroup,