diff --git a/src/main/java/org/takes/rs/RsWithBody.java b/src/main/java/org/takes/rs/RsWithBody.java index 08282f215..4c0f7423d 100644 --- a/src/main/java/org/takes/rs/RsWithBody.java +++ b/src/main/java/org/takes/rs/RsWithBody.java @@ -149,21 +149,19 @@ public InputStream body() { /** * Appends content length to header from response. * @param res Response - * @param contentlength Response body content length + * @param length Response body content length * @return Iterable String of header attributes * @throws IOException if something goes wrong. */ private static Iterable append( - final Response res, final int contentlength) throws IOException { + final Response res, final int length) throws IOException { final Iterator itr = res.head().iterator(); final List headerAttrs = new LinkedList(); while (itr.hasNext()) { headerAttrs.add(itr.next()); } headerAttrs.add( - String.format( - "Content-Length:%s", contentlength - ) + String.format("Content-Length:%s", length) ); return headerAttrs; }