{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfPHP/Goutte/issues/260","repository_url":"https://api.github.com/repos/FriendsOfPHP/Goutte","labels_url":"https://api.github.com/repos/FriendsOfPHP/Goutte/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfPHP/Goutte/issues/260/comments","events_url":"https://api.github.com/repos/FriendsOfPHP/Goutte/issues/260/events","html_url":"https://github.com/FriendsOfPHP/Goutte/issues/260","id":141577980,"number":260,"title":"Headers not set correctly","user":{"login":"KuenzelIT","id":4572444,"avatar_url":"https://avatars.githubusercontent.com/u/4572444?v=3","gravatar_id":"","url":"https://api.github.com/users/KuenzelIT","html_url":"https://github.com/KuenzelIT","followers_url":"https://api.github.com/users/KuenzelIT/followers","following_url":"https://api.github.com/users/KuenzelIT/following{/other_user}","gists_url":"https://api.github.com/users/KuenzelIT/gists{/gist_id}","starred_url":"https://api.github.com/users/KuenzelIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KuenzelIT/subscriptions","organizations_url":"https://api.github.com/users/KuenzelIT/orgs","repos_url":"https://api.github.com/users/KuenzelIT/repos","events_url":"https://api.github.com/users/KuenzelIT/events{/privacy}","received_events_url":"https://api.github.com/users/KuenzelIT/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-03-17T13:05:52Z","updated_at":"2016-09-05T12:45:38Z","closed_at":null,"body":"Hi,\r\n\r\nwhen I use \r\n\r\n```php\r\n$this->client->setHeader(\"User-Agent\", \"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0\");\r\n```\r\n\r\nI get two User-Agents in my header when looking at it with WireShark:\r\n```\r\nuser-agent: Symfony2 BrowserKit\\r\\n\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0\\r\\n\r\n```\r\n\r\nLooks like somewhere deep is strtolower used, but not for the custom headers.\r\n\r\nNot sure if this is Gouttes \"fault\" or a fault in Guzzle/BrowserKit/...\r\n\r\nI'm not too familiar with Goutte/Guzzle/..., so what do you guys think?"},"comment":{"url":"https://api.github.com/repos/FriendsOfPHP/Goutte/issues/comments/244738652","html_url":"https://github.com/FriendsOfPHP/Goutte/issues/260#issuecomment-244738652","issue_url":"https://api.github.com/repos/FriendsOfPHP/Goutte/issues/260","id":244738652,"user":{"login":"3zzy","id":105034,"avatar_url":"https://avatars.githubusercontent.com/u/105034?v=3","gravatar_id":"","url":"https://api.github.com/users/3zzy","html_url":"https://github.com/3zzy","followers_url":"https://api.github.com/users/3zzy/followers","following_url":"https://api.github.com/users/3zzy/following{/other_user}","gists_url":"https://api.github.com/users/3zzy/gists{/gist_id}","starred_url":"https://api.github.com/users/3zzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3zzy/subscriptions","organizations_url":"https://api.github.com/users/3zzy/orgs","repos_url":"https://api.github.com/users/3zzy/repos","events_url":"https://api.github.com/users/3zzy/events{/privacy}","received_events_url":"https://api.github.com/users/3zzy/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T12:45:38Z","updated_at":"2016-09-05T12:45:38Z","body":"This does the trick: \r\n\r\n```\r\n$client->setHeader('user-agent', $ua);\r\n```\r\n\r\n.. notice that `user-agent` is all lowercase."}}
{"actor":{"display_login":"3zzy"}}