-
-
Notifications
You must be signed in to change notification settings - Fork 69
Closed
Labels
BugSomething isn't workingSomething isn't working
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.
Originally posted by @Ocramius at zendframework/zend-diactoros#150
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't working