-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass all http headers in request metadata #588
Conversation
fix json unit test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is Travis running with or without getallheaders
being called? I assume without because it's not running a server
It'd be nice to add tests that prove we call it when it exists, or maybe we should leave it out to avoid over complicating things, because we know the current output is fine (once we add the missing headers)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Can you add a changelog entry too? Just use TBD
as the version name for now 🙂
We have to be careful that we're not sending sensitive data now, by default. We should redact the |
What extra headers are included by |
Oh, maybe that behaviour should be revisited. ;) |
Yeah, we filter those headers on other platforms so should bring PHP in line for sure 🙂 |
PLAT-4629
Goal
The notifier currently only append headers that start with HTTP_ prefix. Instead all headers should be sent.
Changeset
Update the BasicResolver to use getallheaders if it exists, this will set all HTTP headers
Tests
Update to existing RequestTest.php
Discussion
Alternative Approaches
Outstanding Questions
Linked issues
Review
For the submitter, initial self-review:
For the pull request reviewer(s), this changeset has been reviewed for: