From a57f161e261fce97c264a906be8782dbd92ca8b4 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Wed, 28 Jul 2021 21:49:55 +0000
Subject: [PATCH] Fix proxy as bus TTSS started returning status "HTTP/1.1 200 "

---
 proxy_common.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/proxy_common.php b/proxy_common.php
index cbc5350..a2b7c59 100644
--- a/proxy_common.php
+++ b/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]);

--
Gitblit v1.9.1