Skip to content

Commit

Permalink
fix: dont clone axios req config #1217
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Oct 21, 2024
1 parent 82721c9 commit dcbc102
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/http.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ export class HttpService {
...args: any[]
) {
return new Observable<AxiosResponse<T>>(subscriber => {
const config: AxiosRequestConfig = { ...(args[args.length - 1] || {}) };
let config: AxiosRequestConfig = args[args.length - 1];
if (!config) {
config = {};
}

let cancelSource: CancelTokenSource;
if (!config.cancelToken) {
Expand Down

0 comments on commit dcbc102

Please sign in to comment.