observe response not events in http reqs to effectively use firstValueFrom

This commit is contained in:
Matt Hill
2022-07-29 15:43:19 -06:00
committed by Aiden McClelland
parent 13411f1830
commit 5404ebce1c
2 changed files with 3 additions and 7 deletions

View File

@@ -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',

View File

@@ -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,