fabpot/Goutte — pull request #73 by zachbadgett (2012-07-27 19:55:32+00:00)
Title: Fixed the way headers are set to the request object to allow overwrite.

Currently the Goutte\Client::doRequest method creates the Guzzle request object and sets the headers by merging the BrowserKit\Client's server headers and Goutte\Client's headers; this can cause problems with case-sensitive headers.

This patch allows the user to overwrite the server headers that may be set my the initial client creation. It also removes the line in doRequest that sets the User-Agent to BrowserKit\Client's server header, I'm not sure if this was intentional but it prevents the user from setting a User-Agent header after the client has been instantiated.

Test Passes!