Fix bug in handling 204 responses

This commit is contained in:
Eran Stiller
2015-10-12 08:51:00 +03:00
parent a5a6ae72c3
commit 6fd54d5285

View File

@@ -365,8 +365,10 @@ public class ApiInvoker {
int code = response.getStatusLine().getStatusCode();
String responseString = null;
if(code == 204)
if(code == 204) {
responseString = "";
return responseString;
}
else if(code >= 200 && code < 300) {
if(response.getEntity() != null) {
HttpEntity resEntity = response.getEntity();