Skip to content

Commit

Permalink
Use the existing facility for setting the Content-Length.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias committed Aug 21, 2015
1 parent cb2d171 commit 352c1d8
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -38,7 +38,6 @@ public ServletHttpChannel(final HttpServletRequest request,
this.request = request;
this.response = response;
this.asyncSupported = asyncSupported;

}

private void open() {
Expand Down Expand Up @@ -76,7 +75,7 @@ protected String getResponseCharset() {

@Override
protected void setContentLength(int length) {
this.response.setIntHeader("Content-Length", length);
this.response.setContentLength(length);
}

@Override
Expand Down

0 comments on commit 352c1d8

Please sign in to comment.