toland / patron

Ruby HTTP client based on libcurl
http://toland.github.com/patron/
MIT License
541 stars 73 forks source link

Set the default User-Agent #127

Closed julik closed 8 years ago

julik commented 8 years ago

I was recently bitten by the fact that Github wants User-Agent to be set, and this was not in my code. I think it is a good idea to set a descriptive header by default, since you can remove it if you want to

sess.headers.delete 'User-Agent'
toland commented 8 years ago

Other than one minor typo, this looks good.

julik commented 8 years ago

Will fix, thx

On 1 jun. 2016, at 18:58, Phil Toland notifications@github.com wrote:

Other than one minor typo, this looks good.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.