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 GET validation for lowercase http methods #2497

Merged
merged 3 commits into from
Apr 27, 2023

Conversation

argokasper
Copy link
Contributor

Some requests send method in lowercase (verified with curl and as a default for AWS ALB health check requests), but Go HTTP library constant MethodGet is in upper.

Some requests send method in lowercase, but Go HTTP library constant MethodGet is in upper.
@Link- Link- added needs triage Requires review from the maintainers community Community contribution labels Apr 17, 2023
mumoshu
mumoshu previously approved these changes Apr 21, 2023
Copy link
Collaborator

@mumoshu mumoshu left a comment

Choose a reason for hiding this comment

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

Hey @argokasper! This is absolutely a good catch... I was blindly thinking that go's HTTP server would automatically upper-case the method on composing a request object, but apparently not.

I've just approved the CI workflow run on this pull request so I'll be able to merge this once it passes.

Thank you for your patience and contribution!

@mumoshu mumoshu merged commit a2d4b95 into actions:master Apr 27, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution needs triage Requires review from the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants