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

Do not send response multiple times on error #210

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

nevalla
Copy link
Contributor

@nevalla nevalla commented Jan 22, 2024

If requesting client public key with invalid token, server tries to write the response multiple times, first with 403 header and later with 404 header because clusterId is missing. This PR changes so that response is sent only once (after the error is handled)

@nevalla nevalla requested a review from jakolehm January 22, 2024 15:31
@jakolehm jakolehm merged commit 2f8b035 into main Jan 22, 2024
1 check passed
@jakolehm jakolehm deleted the fix-client-public-key-on-invalid-token branch January 22, 2024 15:56
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