File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -1109,4 +1109,24 @@ public function testUserAgentOption(): void
1109
1109
$ this ->assertArrayHasKey (CURLOPT_USERAGENT , $ options );
1110
1110
$ this ->assertSame ($ agent , $ options [CURLOPT_USERAGENT ]);
1111
1111
}
1112
+
1113
+ public function testMultipleHTTP100 (): void
1114
+ {
1115
+ $ output = 'HTTP/1.1 100 Continue
1116
+ Mark bundle as not supporting multiuse
1117
+ HTTP/1.1 100 Continue
1118
+ Mark bundle as not supporting multiuse
1119
+ HTTP/1.1 200 OK
1120
+ Server: Werkzeug/2.2.2 Python/3.7.17
1121
+ Date: Sun, 28 Jan 2024 06:05:36 GMT
1122
+ Content-Type: application/json
1123
+ Content-Length: 33
1124
+ Connection: close ' ;
1125
+
1126
+ $ this ->request ->setOutput ($ output );
1127
+
1128
+ $ response = $ this ->request ->request ('get ' , 'http://example.com ' );
1129
+
1130
+ $ this ->assertSame (200 , $ response ->getStatusCode ());
1131
+ }
1112
1132
}
You can’t perform that action at this time.
0 commit comments