MOBILE-3269 core: Fix HEAD requests in iOS

main
Dani Palou 2020-03-16 11:16:25 +01:00
parent 3b7967e266
commit 0fc2900d33
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}