Skip to content

Commit

Permalink
yegor256#58: indentation updated
Browse files Browse the repository at this point in the history
  • Loading branch information
popprem committed Apr 21, 2015
1 parent 1405bc5 commit f6a90eb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/java/org/takes/rs/RsWithBody.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> append(
final Response res, final int contentlength) throws IOException {
final Response res, final int length) throws IOException {
final Iterator<String> itr = res.head().iterator();
final List<String> headerAttrs = new LinkedList<String>();
while (itr.hasNext()) {
headerAttrs.add(itr.next());
}
headerAttrs.add(
String.format(
"Content-Length:%s", contentlength
)
String.format("Content-Length:%s", length)
);
return headerAttrs;
}
Expand Down

0 comments on commit f6a90eb

Please sign in to comment.