Skip to content

Conversation

@Shane32
Copy link
Member

@Shane32 Shane32 commented Aug 4, 2024

Closes #986

@Shane32 Shane32 added this to the 8.0 milestone Aug 4, 2024
@Shane32 Shane32 requested a review from gao-artur August 4, 2024 22:28
@Shane32 Shane32 self-assigned this Aug 4, 2024
@Shane32 Shane32 changed the base branch from master to develop August 4, 2024 22:29
Comment on lines +601 to +605
if (result.Errors?.Count > 0 && result.Errors[0] is IHasPreferredStatusCode initialError)
{
if (result.Errors.All(e => e is IHasPreferredStatusCode e2 && e2.PreferredStatusCode == initialError.PreferredStatusCode))
statusCode = initialError.PreferredStatusCode;
}

Check notice

Code scanning / CodeQL

Nested 'if' statements can be combined

These 'if' statements can be combined.
@Shane32 Shane32 merged commit 39aef15 into develop Aug 5, 2024
@Shane32 Shane32 deleted the more branch August 5, 2024 12:14
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.

Is there a way to change the status code of the authorization extension from 400 to 401?

3 participants