httprb / http

HTTP (The Gem! a.k.a. http.rb) - a fast Ruby HTTP client with a chainable API, streaming support, and timeouts
MIT License
3.01k stars 321 forks source link

Unknown MIME type: text/plain #713

Closed Terciuss closed 2 years ago

Terciuss commented 2 years ago

I am getting this error on using response.parse Unknown MIME type: text/plain How can I resolve this.

tarcieri commented 2 years ago

You can't parse a text/plain response. There's nothing to parse!

Terciuss commented 2 years ago

ok, I just assumed that if the parse returns content converted according to the type, then it should also understand the string response

tarcieri commented 2 years ago

The only built-in support is for JSON

Terciuss commented 2 years ago

ok, thanks