We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d764802 commit f62677cCopy full SHA for f62677c
src/lib/services/pending-interceptor.service.ts
@@ -59,10 +59,14 @@ export class PendingInterceptorService implements HttpInterceptor {
59
});
60
}
61
62
- intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
63
- const shouldBypass = this.shouldBypassUrl(req.urlWithParams)
+ private shouldBypass(req: HttpRequest<any>) {
+ return this.shouldBypassUrl(req.urlWithParams)
64
|| this.shouldBypassMethod(req)
65
|| this._forceByPass;
66
+ }
67
+
68
+ intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
69
+ const shouldBypass = this.shouldBypass(req);
70
71
if (!shouldBypass) {
72
this._pendingRequests++;
0 commit comments