toland / patron

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

Don't fail with invalid charset names #96

Closed kazjote closed 9 years ago

kazjote commented 9 years ago

Currently patron throws an exception

ArgumentError: unknown encoding name - utf8

whenever it encounters response with unknown charset. In my case it fails for charset utf8 (valid one is utf-8)

This PR fixes this problem.

toland commented 9 years ago

Nice. Thanks for including tests.