X-Git-Url: https://git.cweiske.de/gamestick-pjgsapi.git/blobdiff_plain/99177650214175deb2612a6a66eb48f2a8eb04bc..8003cb550425c2ceace9ed93142315799a98f8c1:/www/api/rest/connect.php diff --git a/www/api/rest/connect.php b/www/api/rest/connect.php index ba45c8a..783684f 100644 --- a/www/api/rest/connect.php +++ b/www/api/rest/connect.php @@ -3,8 +3,6 @@ * Generate the apps list + other information available at * http://l2.gamestickservices.net/api/rest/connect/stick/stick/xxx/view.json */ -#readfile(dirname(__FILE__, 4) . '/alex.json');die(); - header('HTTP/1.0 500 Internal Server Error'); $rootDir = dirname(__FILE__, 4); @@ -117,6 +115,8 @@ foreach ($placeholderFiles as $placeholder => $cacheFile) { ); } +sleep(2);//prevent error "Failed to duplicate connect data for console" + header('HTTP/1.0 200 OK'); header('Content-Type: application/json'); echo $json . "\n";