Skip to content

Commit 8c8ce1f

Browse files
[HttpClient] fix race condition when reading response with informational status
1 parent 2d1f7d0 commit 8c8ce1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Test/Fixtures/web/index.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
header('HTTP/1.1 103 Early Hints');
4646
header('Link: </style.css>; rel=preload; as=style', false);
4747
header('Link: </script.js>; rel=preload; as=script', false);
48+
flush();
49+
usleep(1000);
4850
echo "HTTP/1.1 200 OK\r\n";
4951
echo "Date: Fri, 26 May 2017 10:02:11 GMT\r\n";
5052
echo "Content-Length: 13\r\n";

0 commit comments

Comments
 (0)