Explorar el Código

Update auth-functions.php

Have both headers for compatibility
causefx hace 7 años
padre
commit
7edba2ae69
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      api/functions/auth-functions.php

+ 1 - 0
api/functions/auth-functions.php

@@ -321,6 +321,7 @@ function plugin_auth_emby_local($username, $password)
 				// Login Success - Now Logout Emby Session As We No Longer Need It
 				$headers = array(
 					'X-Emby-Token' => $json['AccessToken'],
+					'X-Mediabrowser-Token' => $json['AccessToken'],
 				);
 				$response = Requests::post(qualifyURL($GLOBALS['embyURL']) . '/Sessions/Logout', $headers, array());
 				if ($response->success) {