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 67ea3ce commit 0184319Copy full SHA for 0184319
src/interceptor-service.ts
@@ -286,9 +286,14 @@ export class InterceptorService extends Http {
286
startFrom = this.interceptors.length - 1;
287
}
288
289
+ // If error occurred when making actual server call, lets start from last interceptor in the chain
290
+ if (startFrom === this.interceptors.length) {
291
+ startFrom = this.interceptors.length - 1;
292
+ }
293
+
294
for (let index = startFrom; index >= 0; index--) {
295
const interceptor: Interceptor = this.interceptors[index];
- if (!interceptor.onResponse) {
296
+ if (interceptor.onResponse === undefined) {
297
continue;
298
299
0 commit comments