Merge remote-tracking branch 'origin/master' into java-global-security

This commit is contained in:
xhh 2015-10-14 20:42:20 +08:00
commit 65e63a8c52
2 changed files with 6 additions and 2 deletions

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();

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();