From 8b23275617af7f28ceb8b70d31847034610011ea Mon Sep 17 00:00:00 2001 From: Chantal Roth Date: Tue, 6 Oct 2015 19:23:19 +0200 Subject: [PATCH] https://github.com/Netflix/zuul/issues/169 --- .../java/com/netflix/zuul/context/RequestContext.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);