Improved www.ttss.krakow.pl
Jacek Kowalski
2021-07-28 a57f161e261fce97c264a906be8782dbd92ca8b4
Fix proxy as bus TTSS started returning status "HTTP/1.1 200 "

Previously it returned "HTTP/1.1 200 OK"
1 files modified
2 ■■■ changed files
proxy_common.php 2 ●●● patch | view | raw | blame | history
proxy_common.php
@@ -108,7 +108,7 @@
}
$result = @file_get_contents($base_proxy . $path . '?' . http_build_query($parameters));
if(!$result OR $http_response_header[0] != 'HTTP/1.1 200 OK') {
if(!$result OR substr($http_response_header[0], 0, 13) != 'HTTP/1.1 200 ') {
    header('HTTP/1.1 503 Service Unavailable');
    if(isset($http_response_header[0])) {
        die($http_response_header[0]);