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

Adding PATCH method to environ_add_POST #448

Open
Wesleyzxc opened this issue Feb 19, 2023 · 0 comments
Open

Adding PATCH method to environ_add_POST #448

Wesleyzxc opened this issue Feb 19, 2023 · 0 comments

Comments

@Wesleyzxc
Copy link

Link to function: https://github.com/Pylons/webob/blob/main/src/webob/request.py#L1554

In the function environ_add_POST, it doesn't seem to consider the PATCH method and is defaulting to POST even on PATCH. Should there be an additional PATCH method in the check?

    if env["REQUEST_METHOD"] not in ("POST", "PUT"):
        env["REQUEST_METHOD"] = "POST"
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

No branches or pull requests

1 participant