Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Commit

Permalink
Merge pull request #35 from nenad/hotfix/prevent-overriding-headers-g…
Browse files Browse the repository at this point in the history
…uzzle

Prevent overriding already set headers
  • Loading branch information
nenad authored Sep 17, 2019
2 parents 615dd96 + f5dbb3b commit cbccbc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Trace/Integrations/Guzzle/EventSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function onBefore(BeforeEvent $event)
$request = $event->getRequest();
$headers = new ArrayHeaders();
$this->propagator->inject($this->tracer->spanContext(), $headers);
$request->setHeaders($headers->toArray());
$request->addHeaders($headers->toArray());

$attrHeaders = [];
foreach ($request->getHeaders() as $name => $values) {
Expand Down

0 comments on commit cbccbc2

Please sign in to comment.