Ver Fonte

Support HTTP/2 Responses

own3mall há 4 anos atrás
pai
commit
52142b19ca
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      includes/helpers.php

+ 1 - 1
includes/helpers.php

@@ -169,7 +169,7 @@ function get_first_existing_file($paths, $referrer = "", $agent = "")
 				// Reset timeout to old value
 				ini_set('default_socket_timeout', $origSocketTimeout);
 			}
-			if(trim($file_headers[0]) == 'HTTP/1.0 200 OK' || trim($file_headers[0]) == 'HTTP/1.1 200 OK') return $path;
+			if(trim($file_headers[0]) == 'HTTP/1.0 200 OK' || trim($file_headers[0]) == 'HTTP/1.1 200 OK' || trim($file_headers[0]) == 'HTTP/2 200' || trim($file_headers[0]) == 'HTTP/1.1 200' || trim($file_headers[0]) == 'HTTP/1.0 200') return $path;
 		}
 		
         if (file_exists($path)) return $path;