Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Propagator is responsible for injecting, not the RequestHandler#108

Merged
chingor13 merged 1 commit intomasterfrom
headers
Feb 9, 2018
Merged

Propagator is responsible for injecting, not the RequestHandler#108
chingor13 merged 1 commit intomasterfrom
headers

Conversation

@chingor13
Copy link
Copy Markdown
Member

No description provided.

@chingor13 chingor13 self-assigned this Feb 9, 2018
@chingor13 chingor13 requested a review from tmatsuo February 9, 2018 00:54
$header = str_replace('_', '-', preg_replace('/^HTTP_/', '', $this->header));
$container[$header] = $this->formatter->serialize($context);
return $container;
$value = $this->formatter->serialize($context);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you still need the $container argument?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, ok, it's a part of the interface

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's used for other propagators (like grpc). In this case, it's unused because we are injecting the header into current request.

@chingor13 chingor13 merged commit 573d5fd into master Feb 9, 2018
@chingor13 chingor13 deleted the headers branch February 9, 2018 01:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants