Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

correctly determine content-length on response

  • Loading branch information...
commit 6bb95aa2877753a38d6ac54b1878bc891f841739 1 parent 3092215
@cloudhead authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/journey.js
View
2  lib/journey.js
@@ -211,7 +211,7 @@ journey.Router.prototype = {
outcome.headers["Content-Type"] = "application/json";
outcome.body = JSON.stringify(outcome.body);
}
- outcome.headers['Content-Length'] = outcome.body.length;
+ outcome.headers['Content-Length'] = Buffer.byteLength(outcome.body);
} else {
delete(outcome.headers["Content-Type"]);
}
Please sign in to comment.
Something went wrong with that request. Please try again.