Closed mxlje closed 9 years ago
Since the user-agent is currently defined as a constant (Unirest::USER_AGENT), there’s no clean way to customize it. This PR adds a method on the Unirest module to override the default string.
Unirest::USER_AGENT
Unirest
Unirest.user_agent("custom_user_agent")
:+1:
needs rebase from master.
Hope everything is fine now :)
Since the user-agent is currently defined as a constant (
Unirest::USER_AGENT
), there’s no clean way to customize it. This PR adds a method on theUnirest
module to override the default string.