mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
observe response not events in http reqs to effectively use firstValueFrom
This commit is contained in:
committed by
Aiden McClelland
parent
13411f1830
commit
5404ebce1c
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user