Skip to content

Commit

Permalink
Update to reactphp/http v1.10.0 and update SAPI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
clue committed Apr 12, 2024
1 parent 9b17ad9 commit cdf1259
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"php": ">=7.1",
"nikic/fast-route": "^1.3",
"react/async": "^4 || ^3",
"react/http": "^1.9",
"react/http": "^1.10",
"react/promise": "^3 || ^2.10",
"react/socket": "^1.13"
},
Expand Down
2 changes: 1 addition & 1 deletion tests/Io/SapiHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function testRequestFromGlobalsWithConnectProxy(): void
$request = $sapi->requestFromGlobals();

$this->assertEquals('CONNECT', $request->getMethod());
$this->assertEquals('example.com:443', (string) $request->getUri());
$this->assertEquals('//example.com:443', (string) $request->getUri());
$this->assertEquals('example.com:443', $request->getRequestTarget());
$this->assertEquals('1.1', $request->getProtocolVersion());
$this->assertEquals('example.com:443', $request->getHeaderLine('Host'));
Expand Down

0 comments on commit cdf1259

Please sign in to comment.