Skip to content

Commit

Permalink
Merge pull request #20 from dcarbone/bugfix/set-write-options-token-p…
Browse files Browse the repository at this point in the history
…aram

addressing #19
  • Loading branch information
dcarbone authored Jul 8, 2020
2 parents 0690ab9 + 509e41b commit 6524ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function setWriteOptions(WriteOptions $options = null) {
if ($this->config->TokenInHeader) {
$this->Headers->set('X-Consul-Token', $options->Token);
} else {
$this->Headers->set('token', $options->Token);
$this->Params->set('token', $options->Token);
}
}
if (0 !== $options->RelayFactor) {
Expand Down

0 comments on commit 6524ceb

Please sign in to comment.