Skip to content

Commit 97d471c

Browse files
authored
Merge pull request #26 from tonysm/tm/headers-cli
Pass the headers to the stress run
2 parents 747b32c + ea62d7f commit 97d471c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Plugin.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ public function handleArguments(array $arguments): array
4848
$run = stress($domain);
4949

5050
foreach ($arguments as $argument) {
51+
if (str_starts_with($argument, '--headers=')) {
52+
$run->headers($this->extractPayload('headers', $argument));
53+
}
54+
5155
if (str_starts_with($argument, '--duration=')) {
5256
$run->duration((int) str_replace('--duration=', '', $argument));
5357
}

0 commit comments

Comments
 (0)