We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1db90c4 commit 9a41f6bCopy full SHA for 9a41f6b
1 file changed
tests/system/HTTP/CURLRequestTest.php
@@ -718,6 +718,18 @@ public function testSendContinued()
718
$this->assertSame('Hi there', $response->getBody());
719
}
720
721
+ public function testSendProxied()
722
+ {
723
+ $request = $this->getRequest([
724
+ 'base_uri' => 'http://www.foo.com/api/v1/',
725
+ 'delay' => 100,
726
+ ]);
727
+
728
+ $request->setOutput("HTTP/1.1 200 Connection established:\x0d\x0a\x0d\x0aHi there");
729
+ $response = $request->get('answer');
730
+ $this->assertSame('Hi there', $response->getBody());
731
+ }
732
733
/**
734
* See: https://github.com/codeigniter4/CodeIgniter4/issues/3261
735
*/
0 commit comments