We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab407d6 commit 76ae124Copy full SHA for 76ae124
tests/PHPCurlClass/server.php
@@ -274,8 +274,11 @@
274
$server->serve($unsafe_file_path);
275
exit;
276
} elseif ($test === 'timeout') {
277
+ header('Content-Type: application/json');
278
$unsafe_seconds = $_GET['seconds'];
279
$start = time();
280
+ echo '{' . "\n";
281
+ echo ' "loading": "';
282
while (true) {
283
echo '.';
284
ob_flush();
@@ -286,6 +289,9 @@
286
289
break;
287
290
}
288
291
292
+ echo '",' . "\n";
293
+ echo ' "elapsed_seconds": "' . $elapsed . '"' . "\n";
294
+ echo '}' . "\n";
295
296
} elseif ($test === 'error_message') {
297
if (function_exists('http_response_code')) {
0 commit comments