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

change: return 400 when the response can't be modified #228

Conversation

simonpasquier
Copy link
Contributor

With this change, the proxy returns a 400 status code instead of 502 when the incoming request contains multiple label values while the proxy is configured for regex matching (which allows only one label value).

@simonpasquier simonpasquier requested a review from squat June 17, 2024 13:51
With this change, the proxy returns a 400 status code instead of 502
when the incoming request contains multiple label values while the proxy
is configured for regex matching (which allows only one label value).

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
@simonpasquier simonpasquier force-pushed the fix-response-code-for-malformed-modified-responses branch from a73d85b to 4e20d40 Compare June 26, 2024 12:52
@simonpasquier
Copy link
Contributor Author

friendly ping @squat

Copy link
Member

@squat squat left a comment

Choose a reason for hiding this comment

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

Nice clean work @simonpasquier

@squat squat merged commit c33000b into prometheus-community:main Jul 4, 2024
4 checks passed
@simonpasquier simonpasquier deleted the fix-response-code-for-malformed-modified-responses branch July 22, 2024 08:40
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