Skip to content

Commit

Permalink
patch to response body length that uses correct byte length measure n…
Browse files Browse the repository at this point in the history
…ot string length measure
  • Loading branch information
thatcher committed Jul 29, 2010
1 parent ac710b1 commit 6e407b8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file modified WEB-INF/classes/claypool/server/RequestHandler.class
Binary file not shown.
4 changes: 2 additions & 2 deletions WEB-INF/classes/claypool/server/RequestHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ public boolean processRequest(HttpServletRequest request, HttpServletResponse re
String body = Context.toString(
ScriptableObject.getProperty(res, "body")
);
if(! (contentLength > -1) ){
//if(! (contentLength > -1) ){
contentLength = body.getBytes("UTF-8").length;
}
//}
response.setContentLength(contentLength);
logger.debug("Actual Body Length ===> " + contentLength);
response.getWriter().println(body);
Expand Down
Binary file modified dist/claypool.0.5.2.jar
Binary file not shown.
Binary file modified dist/claypool.jar
Binary file not shown.

0 comments on commit 6e407b8

Please sign in to comment.