You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering why parse_request doesn't support absolute URI's. Request like this fail:
GET https://www.google.com HTTP/1.1
The regex explicity requires a starting slash after the keyword:
if (!preg_match('/^[a-zA-Z]+\s+\/.*/', $data['start-line'])) {
throw new \InvalidArgumentException('Invalid request string');
}
Are there any objections to support absolute URI's as well? I'm trying to build a php proxy server using reactphp/http (which uses guzzle/psr7) and it doesn't work because of this. If no objections I can create a PR.
Best,
Nicolas
The text was updated successfully, but these errors were encountered:
I was wondering why parse_request doesn't support absolute URI's. Request like this fail:
GET https://www.google.com HTTP/1.1
The regex explicity requires a starting slash after the keyword:
if (!preg_match('/^[a-zA-Z]+\s+/.*/', $data['start-line'])) {
throw new \InvalidArgumentException('Invalid request string');
}
Are there any objections to support absolute URI's as well? I'm trying to build a php proxy server using reactphp/http (which uses guzzle/psr7) and it doesn't work because of this. If no objections I can create a PR.
Best,
Nicolas
—
Reply to this email directly or view it on GitHub.
I was wondering why parse_request doesn't support absolute URI's. Request like this fail:
The regex explicity requires a starting slash after the keyword:
Are there any objections to support absolute URI's as well? I'm trying to build a php proxy server using reactphp/http (which uses guzzle/psr7) and it doesn't work because of this. If no objections I can create a PR.
Best,
Nicolas
The text was updated successfully, but these errors were encountered: