Skip to content

Extend body filtering to handle non-POST methods#1004

Open
andrescollares wants to merge 1 commit into
kevin1024:masterfrom
andrescollares:extend-body-filtering-to-non-post-methods
Open

Extend body filtering to handle non-POST methods#1004
andrescollares wants to merge 1 commit into
kevin1024:masterfrom
andrescollares:extend-body-filtering-to-non-post-methods

Conversation

@andrescollares

@andrescollares andrescollares commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Should solve #328.

It's also a potential breaking change if users aren't expecting requests that are not POSTs to be filtered.

If this is a big problem, an idea that I had was to add an optional parameter to replace_body_parameters that contains a tuple of methods to be filtered by, that way we could keep only "POST" by default and let users extend it or set it as None (no method check) if they want to.

Used a local llm to help me refactor the tests.

@andrescollares
andrescollares marked this pull request as ready for review June 23, 2026 02:08
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.

1 participant