From 0fc2900d337c29789a55dfc8179bf90e13b63bbf Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 16 Mar 2020 11:16:25 +0100 Subject: [PATCH] MOBILE-3269 core: Fix HEAD requests in iOS --- src/providers/ws.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/providers/ws.ts b/src/providers/ws.ts index ce0fd8997..c13af220f 100644 --- a/src/providers/ws.ts +++ b/src/providers/ws.ts @@ -506,7 +506,8 @@ export class CoreWSProvider { let promise = this.getPromiseHttp('head', url); if (!promise) { - promise = this.http.head(url, {observe: 'response'}).timeout(this.getRequestTimeout()).toPromise(); + promise = this.http.head(url, {observe: 'response', responseType: 'blob'}).timeout(this.getRequestTimeout()) + .toPromise(); promise = this.setPromiseHttp(promise, 'head', url); }