Skip to content

Commit dcbc102

Browse files
fix: dont clone axios req config #1217
1 parent 82721c9 commit dcbc102

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/http.service.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ export class HttpService {
127127
...args: any[]
128128
) {
129129
return new Observable<AxiosResponse<T>>(subscriber => {
130-
const config: AxiosRequestConfig = { ...(args[args.length - 1] || {}) };
130+
let config: AxiosRequestConfig = args[args.length - 1];
131+
if (!config) {
132+
config = {};
133+
}
131134

132135
let cancelSource: CancelTokenSource;
133136
if (!config.cancelToken) {

0 commit comments

Comments
 (0)