mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 08:01:38 +02:00
Added accept header to call to graylog api
This commit is contained in:
@@ -42,7 +42,8 @@ $graylog_url = $config['graylog']['server'] . ':' . $config['graylog']['port'] .
|
|||||||
|
|
||||||
$context = stream_context_create(array(
|
$context = stream_context_create(array(
|
||||||
'http' => array(
|
'http' => array(
|
||||||
'header' => "Authorization: Basic " . base64_encode($config['graylog']['username'].':'.$config['graylog']['password'])
|
'header' => "Authorization: Basic " . base64_encode($config['graylog']['username'].':'.$config['graylog']['password']) . "\r\n" .
|
||||||
|
"Accept: application/json",
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user