mercadolibre / java-restclient

A lightweight REST client implementation for Java 1.7+.
Apache License 2.0
38 stars 15 forks source link

NPE in Response#getString() when there's no Content-Type header #3

Open rgl2811 opened 6 years ago

rgl2811 commented 6 years ago

When there is no Content-Type header in the response, if getString() method is invoked it throws a NPE.

ContentType#get() implementation sets "*/*" to Content-Type value if the header is not present in the response, but sets charset to null.