Skip to content

Commit

Permalink
Merge pull request #67 from brianjmiller/qs-headers
Browse files Browse the repository at this point in the history
Enable setting headers on `RemoteLRS.queryStatements`
  • Loading branch information
brianjmiller authored Aug 22, 2016
2 parents 0192ace + e2604aa commit 027759c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/RemoteLRS.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 027759c

Please sign in to comment.