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

Text for 405 errors is a lie #6894

Open
matrixbot opened this issue Dec 17, 2023 · 0 comments
Open

Text for 405 errors is a lie #6894

matrixbot opened this issue Dec 17, 2023 · 0 comments

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 17, 2023

This issue has been migrated from #6894.


When you send a GET request to an endpoint that only supports POST, or vice versa, synapse sends back an error that looks like:

Method Not Allowed

Your browser approached me (at /_matrix/saml2/authn_response) with the method "GET". I only allow the method HEAD here.

We hardly support HEAD anywhere, and it doesn't say anything about POST.

(This actually only happens on a subset of endpoints, such as the media repo ones. For others we give back a 400, which I think is fine).

Related: matrix-org/synapse#6746

@matrixbot matrixbot changed the title Dummy issue Text for 405 errors is a lie Dec 21, 2023
@matrixbot matrixbot reopened this Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant