Skip to content

Commit b1ff258

Browse files
committed
fix(int): Testing a bug fix
1 parent 20c79fd commit b1ff258

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/interceptor-service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ export class InterceptorService extends Http {
8181
.build();
8282

8383
return Observable.create((observer: Subscriber<Response>) => {
84-
const requestNum = this.requestNum;
85-
const subscription = this.httpRequest(request, requestNum).subscribe(
84+
const localRequestNum = this.requestNum;
85+
const subscription = this.httpRequest(request, localRequestNum).subscribe(
8686
(response: Response) => observer.next(response),
8787
(e: Error) => observer.error(e),
8888
() => observer.complete()
@@ -92,7 +92,7 @@ export class InterceptorService extends Http {
9292
for (let index = this.interceptors.length - 1; index >= 0; index--) {
9393
const interceptor = this.interceptors[index];
9494
if (interceptor.onUnsubscribe !== undefined) {
95-
interceptor.onUnsubscribe(index, url, options, requestNum);
95+
interceptor.onUnsubscribe(index, url, options, localRequestNum);
9696
}
9797
}
9898
});

0 commit comments

Comments
 (0)