twingly / twingly-http

Robust HTTP client
https://rubygems.org/gems/twingly-http
MIT License
0 stars 1 forks source link

Adjust user_agent creation #31

Closed yendi127 closed 1 week ago

yendi127 commented 1 week ago

This new addition allows the user to set a specific user_agent for the client.

I added a new parameter to the initialize, so that if we'd want to use a specific user_agent it would be possible. This parameter has a default as well, so that no changes would have to be made in older projects unless a specific user_agent is needed.

The specs have also been updated accordingly.