Uh oh!
There was an error while loading. Please reload this page.
Fix parsing CONNECT request without Host header - #201
Conversation
WyriHaximus
commented
Jun 15, 2017
Since we already have code in |
| $data = "CONNECT example.com:443 HTTP/1.1\r\n\r\n"; | ||
| $this->connection->emit('data', array($data)); | ||
| $this->assertInstanceOf('RingCentral\Psr7\Request', $requestAssertion); |
There was a problem hiding this comment.
Shouldn't this test against Psr\Http\Message\ServerRequestInterface instead of the implementation?
There was a problem hiding this comment.
Yes and no :-)
This test is in line with all other tests, but I agree that we should also change all other tests as well. I'll keep this as-is for now and will look into filing a follow-up clean-up PR? 👍
clue
commented
Jun 16, 2017
Yes and no :-) Given the current state of the repo, both are actually valid options and I'd vote to just tag a Only a single other PR has been merged to the We could maintain separate release branches, but this would actually require additional effort right now and would provide very little value otherwise. We would have to file this PR against the My vote would be to get this fix out rather sooner than later, but I'm open to either option 👍 |
WyriHaximus
commented
Jun 16, 2017
Using master sounds good to me then 👍 |
This means that all of these examples now correctly return the same URI and also the same Host header value example.com without the default port in this case:
Builds on top of #158 and #173