diff --git a/src/RemoteLRS.php b/src/RemoteLRS.php index d951dbc..9c193a5 100644 --- a/src/RemoteLRS.php +++ b/src/RemoteLRS.php @@ -560,6 +560,15 @@ public function queryStatements($query) { $requestCfg = array( 'params' => $this->_queryStatementsRequestParams($query), ); + if (func_num_args() > 1) { + $options = func_get_arg(1); + + if (isset($options)) { + if (isset($options['headers'])) { + $requestCfg['headers'] = $options['headers']; + } + } + } $response = $this->sendRequest('GET', 'statements', $requestCfg);