Skip to content

Commit 6524ceb

Browse files
authored
Merge pull request #20 from dcarbone/bugfix/set-write-options-token-param
addressing #19
2 parents 0690ab9 + 509e41b commit 6524ceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Request.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function setWriteOptions(WriteOptions $options = null) {
175175
if ($this->config->TokenInHeader) {
176176
$this->Headers->set('X-Consul-Token', $options->Token);
177177
} else {
178-
$this->Headers->set('token', $options->Token);
178+
$this->Params->set('token', $options->Token);
179179
}
180180
}
181181
if (0 !== $options->RelayFactor) {

0 commit comments

Comments
 (0)