prevent client from hanging at end of tests

The client can appear to hang at the end of the tests and the PHP server can hold open the uploading connections longer than desired. This condition will usually happen on poor connections, it does not happen on good high bandwidth low latency connections.
This commit is contained in:
Jason Winget 2019-10-26 12:47:37 -04:00 committed by GitHub
parent cfd0eb0145
commit b47f86696e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,5 @@
<?php
set_time_limit (15); // prevent PHP from leaving sockets open with client
header( "HTTP/1.1 200 OK" );
if(isset($_GET["cors"])){
header('Access-Control-Allow-Origin: *');