Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Do not allow an invalid HTTP method for requests #302

Conversation

weierophinney
Copy link
Member

This patch rebases and fixes the patch introduced with #162.

Internally, it modifies how the RequestTrait works to ensure that the HTTP method is always valid; this allows removal of duplicated code in the ServerRequest, as well as a conditional and exception from the request serializer.

Considering PSR-17 requires an HTTP method to its various request factories, this brings Diactoros in line with that proposed spec.

@weierophinney weierophinney merged commit 898ab0f into zendframework:release-2.0 May 29, 2018
@weierophinney weierophinney deleted the feature/162-require-request-method branch May 29, 2018 17:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants