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

return 405 instead of panicking on unsupported method #1249

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

dicej
Copy link
Contributor

@dicej dicej commented Mar 9, 2023

Previously, Spin would panic and not return a response when handling a request with an unsupported HTTP method, e.g. curl -X WHAT http://127.0.0.1:3000/. Now it will return a 405 instead.

Previously, Spin would panic and not return a response when handling a
request with an unsupported HTTP method, e.g. `curl -X WHAT
http://127.0.0.1:3000/`.  Now it will return a 405 instead.

Signed-off-by: Joel Dice <[email protected]>
Copy link
Contributor

@fibonacci1729 fibonacci1729 left a comment

Choose a reason for hiding this comment

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

Nice catch!

@dicej dicej merged commit 445cf53 into fermyon:main Mar 10, 2023
@dicej dicej deleted the unsupported-method-405 branch March 10, 2023 15: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.

4 participants