SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 0 JavaScript

fix($http): avoid `Possibly Unhandled Rejection` error when the request fails

Calling `promise.finally(...)` creates a new promise. If we don't return this promise, the user
won't be able to attach an error handler to it and thus won't be able to prevent a potential PUR
error.

This commit also improves the test coverage for the increment/decrement `outstandingRequestCount`
fix.

Closes #13869
Closes #14921
G
Georgios Kalpakas committed
47583d98005f6a498d397dbe2cedaadac69f0b47
Parent: dc7f625
Committed by Peter Bacon Darwin <pete@bacondarwin.com> on 7/18/2016, 9:09:52 AM