Fix confusion between length in bytes and length in characters in app::response().
authorTom Sepez <tsepez@chromium.org>
Fri, 22 Aug 2014 22:52:05 +0000 (15:52 -0700)
committerTom Sepez <tsepez@chromium.org>
Fri, 22 Aug 2014 22:52:05 +0000 (15:52 -0700)
commit48f26c5a67a321c61649405c1e241d4fc480cbb3
tree12e87d4cf3ef09614c18c6d3dc1d3c6da50fd277
parente9bf0e918a731204f16cbd6e484f33190c10803e
Fix confusion between length in bytes and length in characters in app::response().

I also clean up the code while we are here, rewriting a strange switch statement and tidying whitespace.

BUG=406142
R=jun_fang@foxitsoftware.com

Review URL: https://codereview.chromium.org/498773004
fpdfsdk/src/javascript/app.cpp