local-ch / lhc

🚀 Advanced HTTP Client for Ruby. Fueled with interceptors.
GNU General Public License v3.0
43 stars 1 forks source link

Adding charset when setting media type headeres #121

Closed 10xSebastian closed 6 years ago

10xSebastian commented 6 years ago

Minor (backwards compatible)

A lot of APIs actually require a explicit charset to be defined together with the content type (e.g. Slack).

Before:

LHC was not setting the charset:

Content-Type: application/json
Accept: application/json

Now:

LHC adds charset

Content-Type: application/json; charset=utf-8
Accept: application/json; charset=utf-8