diff --git a/frontend/projects/setup-wizard/src/app/services/api/http.service.ts b/frontend/projects/setup-wizard/src/app/services/api/http.service.ts index e1ce31cfb..9d75e5197 100644 --- a/frontend/projects/setup-wizard/src/app/services/api/http.service.ts +++ b/frontend/projects/setup-wizard/src/app/services/api/http.service.ts @@ -54,9 +54,7 @@ export class HttpService { const options = { responseType: 'arraybuffer', body: encryptedBody.buffer, - observe: 'events', - reportProgress: false, - + observe: 'response', headers: { 'Content-Encoding': 'aesctr256', 'Content-Type': 'application/json', @@ -92,8 +90,7 @@ export class HttpService { const options = { responseType: 'json', body: httpOpts.body, - observe: 'events', - reportProgress: false, + observe: 'response', headers: { 'content-type': 'application/json', accept: 'application/json', diff --git a/frontend/projects/ui/src/app/services/http.service.ts b/frontend/projects/ui/src/app/services/http.service.ts index b05895938..b17edf1a5 100644 --- a/frontend/projects/ui/src/app/services/http.service.ts +++ b/frontend/projects/ui/src/app/services/http.service.ts @@ -70,8 +70,7 @@ export class HttpService { const options = { responseType: httpOpts.responseType || 'json', body: httpOpts.body, - observe: 'events', - reportProgress: false, + observe: 'response', withCredentials: httpOpts.withCredentials, headers: httpOpts.headers, params: httpOpts.params,