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

Fix fallback routing #6813

Merged
merged 2 commits into from
Oct 28, 2020
Merged

Fix fallback routing #6813

merged 2 commits into from
Oct 28, 2020

Conversation

nanaya
Copy link
Collaborator

@nanaya nanaya commented Oct 27, 2020

Laravel routing fallback (Route::fallback) will return 405 for non-GET/HEAD requests on invalid routes.
Apparently it's a feature [1] and not a bug.

It seems weird so instead manually do what fallback(...) thing does but accept all HTTP verbs.

[1] laravel/framework#25555 (probably should've linked this one instead of 25550)

Laravel routing fallback (`Route::fallback`) will return 405 for non-GET/HEAD requests on invalid routes.
Apparently it's a feature [1] and not a bug.

It seems weird so instead manually do what `fallback(...)` thing does but accept all HTTP verbs.

[1] laravel/framework#25550
@notbakaneko notbakaneko merged commit 364832c into ppy:master Oct 28, 2020
@nanaya nanaya deleted the better-fallback branch January 14, 2021 05:20
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