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

Fix ErrorWriter IsSupportedCheck with required connect protocol option #700

Merged
merged 3 commits into from
Mar 6, 2024

Conversation

emcfarlane
Copy link
Contributor

This PR fixes ErrorWriter to correctly return unsupported protocol if the option WithRequireConnectProtocolHeader is set and the header or query value isn't include in the request. It will now correctly return unsupported to ensure fallback options can process the error.

Fixes #699

This PR fixes ErrorWriter to correctly return unsupported protocol if
the option WithRequireConnectProtocolHeader is set and the header or
query value isn't include in the request. It will now correctly return
unsupported to ensure fallback options can process the error.

Fixes #699
@emcfarlane emcfarlane self-assigned this Feb 23, 2024
error_writer.go Outdated Show resolved Hide resolved
@emcfarlane emcfarlane merged commit 6fab35e into main Mar 6, 2024
12 checks passed
@emcfarlane emcfarlane deleted the ed/fixEWOpts branch March 6, 2024 02:49
@jhump jhump added the bug Something isn't working label Mar 20, 2024
@jhump jhump mentioned this pull request Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ErrorWriter does not respect connect.WithRequireConnectProtocolHeader option
3 participants