hgoebl / DavidWebb

Lightweight Java HTTP-Client for calling JSON REST-Services (especially for Android)
https://hgoebl.github.io/DavidWebb/
MIT License
127 stars 41 forks source link

An exception occurred when response content-encoding is UTF-8 #31

Closed oksuz closed 6 years ago

oksuz commented 6 years ago

Hello, I am requesting to a url, and url returns Content-Encoding as UTF-8. Webb throws an exception with messsage: (WebbUtils -> wrapStream method)

unsupported content-encoding: UTF-8

I checked out the code, it's only supporting that content-encodings null, identity, gzip, deflate values.

How do I support UTF-8 encoding ?

oksuz commented 6 years ago

service is returning invalid content-encoding. possible content-encodings defined in mdn https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding

thank you.