Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added utf-8 charset encoding

  • Loading branch information...
commit a3474ed6f658efb564cd21d45c68e2adcd9e0431 1 parent e41e14d
@iloire iloire authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/journey.js
View
4 lib/journey.js
@@ -181,7 +181,7 @@ journey.Router.prototype = {
if (outcome.body) {
if (typeof(outcome.body) !== 'string') {
- outcome.headers["Content-Type"] = "application/json";
+ outcome.headers["Content-Type"] = "application/json;charset=utf-8";
outcome.body = JSON.stringify(outcome.body);
}
outcome.headers['Content-Length'] = Buffer.byteLength(outcome.body);
@@ -365,7 +365,7 @@ journey.Router.prototype = {
baseResponse: {
status: req.method == 'POST' ? 201 : 200,
body: "",
- headers: {"Content-Type" : "application/json"}
+ headers: {"Content-Type" : "application/json;charset=utf-8"}
},
// A wrapper around `respond()`, it allows us to respond in a variety of
Please sign in to comment.
Something went wrong with that request. Please try again.