diff --git a/zuul-core/src/main/java/com/netflix/zuul/context/RequestContext.java b/zuul-core/src/main/java/com/netflix/zuul/context/RequestContext.java index 29a32dcaf2..1730dc9752 100644 --- a/zuul-core/src/main/java/com/netflix/zuul/context/RequestContext.java +++ b/zuul-core/src/main/java/com/netflix/zuul/context/RequestContext.java @@ -477,8 +477,8 @@ public void addOriginResponseHeader(String name, String value) { * * @return the content-length of the origin response */ - public Integer getOriginContentLength() { - return (Integer) get("originContentLength"); + public Long getOriginContentLength() { + return (Long) get("originContentLength"); } /** @@ -486,7 +486,7 @@ public Integer getOriginContentLength() { * * @param v */ - public void setOriginContentLength(Integer v) { + public void setOriginContentLength(Long v) { set("originContentLength", v); } @@ -497,7 +497,7 @@ public void setOriginContentLength(Integer v) { */ public void setOriginContentLength(String v) { try { - final Integer i = Integer.valueOf(v); + final Long i = Long.valueOf(v); set("originContentLength", i); } catch (NumberFormatException e) { LOG.warn("error parsing origin content length", e);