This repository was archived by the owner on Jan 29, 2020. It is now read-only.
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Request HTTP method defaults to empty string #150
Open
Description
Discovered while digging in php-http/curl-client#14
Apparently, diactoros defaults the HTTP method when building a new Request('http://example.com')
to ''
(empty string). As far as I know, an empty string is not a valid HTTP method (not sure if that assumption is reflected in the HTTP spec), and therefore the initial state of a diactoros HTTP request is invalid, and should lead to an exception.