Skip to content

Comments

Return reject promise in securityInterceptor#258

Closed
ravishivt wants to merge 1 commit intoangular-app:second_editionfrom
ravishivt:second_edition
Closed

Return reject promise in securityInterceptor#258
ravishivt wants to merge 1 commit intoangular-app:second_editionfrom
ravishivt:second_edition

Conversation

@ravishivt
Copy link

As per angular/angular.js#2609, $http calls
always processed their success callback because the interceptor
stripped out the reject promise.

As per angular/angular.js#2609, $http calls
always processed their success callback because the interceptor
stripped out the reject promise.
@ravishivt ravishivt mentioned this pull request Aug 26, 2014
@petebacondarwin
Copy link
Contributor

Great. Thanks

petebacondarwin pushed a commit that referenced this pull request Aug 27, 2014
As per angular/angular.js#2609, $http requests
always execute their success handler if the interceptor doesn't return a
rejection.

Closes #258
@petebacondarwin
Copy link
Contributor

Fixed up the unit test and landed in second_edition branch. Thanks

petebacondarwin pushed a commit that referenced this pull request Sep 1, 2014
As per angular/angular.js#2609, $http requests
always execute their success handler if the interceptor doesn't return a
rejection.

Closes #258
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants