chg: [Cortex] Don't set the content type header for cortex

pull/3725/head
iglocska 2018-09-10 14:38:19 +02:00
parent a3f83fac63
commit 242b4fd4bc
1 changed files with 1 additions and 0 deletions

View File

@ -215,6 +215,7 @@ class Module extends AppModel
);
if ($moduleFamily == 'Cortex') {
if (!empty(Configure::read('Plugin.' . $moduleFamily . '_authkey'))) {
unset($request['header']['Content-Type']);
$request['header']['Authorization'] = 'Bearer ' . Configure::read('Plugin.' . $moduleFamily . '_authkey');
}
}