Skip to content

Commit

Permalink
minor revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhun Xu committed Oct 28, 2019
1 parent 1a32ccf commit 38d7f94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,10 @@ private SeldonMessage queryREST(
ResponseEntity<String> httpResponse =
restTemplate.postForEntity(uri, request, String.class);
try {
SeldonMessage.Builder builder = SeldonMessage.newBuilder();
String response = httpResponse.getBody();
logger.debug(response);
if (httpResponse.getStatusCode().is2xxSuccessful()) {
SeldonMessage.Builder builder = SeldonMessage.newBuilder();
JsonFormat.parser().ignoringUnknownFields().merge(response, builder);
return builder.build();
} else {
Expand Down

0 comments on commit 38d7f94

Please sign in to comment.