Commit 4ab3db9c by Dave Syer

Use String type for HTTP status

parent bdf5c60c
......@@ -167,7 +167,7 @@ public class RibbonRoutingFilter extends ZuulFilter {
Map<String, Object> trace = (Map<String, Object>) info.get("headers");
Map<String, Object> output = new LinkedHashMap<String, Object>();
trace.put("response", output);
info.put("status", response.getStatus());
info.put("status", ""+response.getStatus());
for (Entry<String, Collection<String>> key : response.getHeaders()
.entrySet()) {
Collection<String> collection = key.getValue();
......@@ -181,7 +181,7 @@ public class RibbonRoutingFilter extends ZuulFilter {
return response;
}
catch (HystrixRuntimeException e) {
info.put("status", 500);
info.put("status", "500");
if (e.getFallbackException() != null
&& e.getFallbackException().getCause() != null
&& e.getFallbackException().getCause() instanceof ClientException) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment