Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
user-agent header gets overwritten #4576
Only by changing to User-Agentt header appears inside printed by php headers list.
PHP received headers inside acceptance test:
This is not working:
The root cause was the long chain of libraries: PhpBrowser -> BrowserKit -> Guzzle -> curl.
I fixed the issue by making PhpBrowser to keep headers to itself, this way the headers traverse the whole chain and nothing overrides them.