Skip to content

Commit

Permalink
Merge pull request Netflix#170 from chenopodium/1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
NiteshKant committed Oct 8, 2015
2 parents eb1fc71 + 8b23275 commit 1d52e7c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,16 +477,16 @@ 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");
}

/**
* sets the content-length from the origin response
*
* @param v
*/
public void setOriginContentLength(Integer v) {
public void setOriginContentLength(Long v) {
set("originContentLength", v);
}

Expand All @@ -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);
Expand Down

0 comments on commit 1d52e7c

Please sign in to comment.