taxjar / taxjar-ruby

Sales Tax API Client for Ruby
https://developers.taxjar.com/api/reference/?ruby
MIT License
54 stars 40 forks source link

Encodes client user agent using ISO-8859-1 character set #82

Closed poops closed 2 years ago

poops commented 2 years ago

The default User-Agent set by this library can sometimes include characters that are not valid characters for an HTTP header. When it does this, any requests made by the client result in a 500 response.

https://github.com/taxjar/taxjar-ruby/issues/72

https://ruby-doc.org/core-2.3.0/String.html#method-i-encode