mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-09 19:13:26 +00:00
change behavior api_token_header
This commit is contained in:
@@ -282,7 +282,7 @@ class OAuth2Controller extends Controller
|
||||
/** @var PropertyAccess $config */
|
||||
$config = $this->app['conf'];
|
||||
|
||||
if ( ! $request->isSecure() && $config->get(['main', 'api_require_ssl'], true) == true) {
|
||||
if ( ! $request->isSecure() && $config->get(['registry', 'api-clients', 'api_require_ssl'], true) == true) {
|
||||
throw new HttpException(400, 'This route requires the use of the https scheme: ' . $config->get(['main', 'api_require_ssl']), null, ['content-type' => 'application/json']);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user