Explorar o código

Update healthChecks.php

Suggesting bumping up Requests redirect limit to Requests for PHP's default of 10 due to 1 returning false errors for reverse proxies with login redirects like Jackett, Radarr, etc.
Jesse Hickman %!s(int64=5) %!d(string=hai) anos
pai
achega
71995cd5ec
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      api/plugins/healthChecks.php

+ 1 - 1
api/plugins/healthChecks.php

@@ -52,7 +52,7 @@ class HealthChecks extends Organizr
 	public function _healthCheckPluginTest($url)
 	{
 		$success = false;
-		$options = array('verify' => false, 'verifyname' => false, 'follow_redirects' => true, 'redirects' => 1);
+		$options = array('verify' => false, 'verifyname' => false, 'follow_redirects' => true, 'redirects' => 10);
 		$headers = array('Token' => $this->config['organizrAPI']);
 		$url = $this->qualifyURL($url);
 		try {