Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for ignoring HTTP errors directly from the Angular $http options #1761

Merged
merged 2 commits into from Feb 23, 2017

Conversation

abjerner
Copy link
Contributor

Issue can be found here: http://issues.umbraco.org/issue/U4-5588

@@ -22,7 +22,7 @@ angular.module('umbraco.security.interceptor')

//Here we'll check if we should ignore the error, this will be based on an original header set
var headers = originalResponse.config ? originalResponse.config.headers : {};
if (headers["x-umb-ignore-error"] === "ignore") {
if (headers["x-umb-ignore-error"] === "ignore" || originalResponse.config.umbIgnoreErrors === true) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will require a null check, just like there is a null check for originalResponse.config in the line above

@Shazwazza Shazwazza merged commit 0a8fa2b into umbraco:dev-v7 Feb 23, 2017
@abjerner abjerner deleted the patch-16 branch October 24, 2019 19:03
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.

None yet

2 participants