-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Remove HTTP method case-insensitivity from Router #2500
Comments
"Be resilient in what you receive, and strict in what you send". PHP user code and HTTP header sent are not the same "layer" and don't have to be that tied. I'd bend keeping this |
However, |
@akrabat can I get this one? |
@JeanPaiva Sure. |
Shouldn't the issue be titled "Remove HTTP method case-insensitivity from Router"? |
Now |
My comment above had been too fast. I hadn't understood there is no change for the simple use case: the user will continue to do |
@JeanPaiva In theory yes, but it depends on the HTTP server, which may be tolerant on the case. But in practice, yes, they seem to follow the specs, and reject the request. |
Fixed by #2507. |
As per https://tools.ietf.org/html/rfc7230#section-3.1.1, HTTP methods are case-sensitive.
Therefore we need to remove:
From
Slim\Router
The text was updated successfully, but these errors were encountered: