Skip to content

Commit e2604aa

Browse files
committed
Enable setting headers on RemoteLRS.queryStatements
1 parent 34b728a commit e2604aa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/RemoteLRS.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,15 @@ public function queryStatements($query) {
557557
$requestCfg = array(
558558
'params' => $this->_queryStatementsRequestParams($query),
559559
);
560+
if (func_num_args() > 1) {
561+
$options = func_get_arg(1);
562+
563+
if (isset($options)) {
564+
if (isset($options['headers'])) {
565+
$requestCfg['headers'] = $options['headers'];
566+
}
567+
}
568+
}
560569

561570
$response = $this->sendRequest('GET', 'statements', $requestCfg);
562571

0 commit comments

Comments
 (0)