Skip to content

Commit

Permalink
(minor) fixed indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Sep 29, 2010
1 parent e9c16d0 commit 1dba50b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/journey.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ journey.Router.prototype = {

if (outcome.body) {
if (typeof(outcome.body) !== 'string') {
outcome.headers["Content-Type"] = "application/json";
outcome.headers["Content-Type"] = "application/json";
outcome.body = JSON.stringify(outcome.body);
}
outcome.headers['Content-Length'] = outcome.body.length;
Expand Down Expand Up @@ -378,15 +378,15 @@ journey.Router.prototype = {
this.respond(mixin({}, this.baseResponse, { body: body }));
},

sendJSONP: function (name, result) {
this.respond(mixin({}, this.baseResponse, {
status: 200,
headers: {
"Content-Type": "text/javascript"
},
body: name + "(" + JSON.stringify(result) + ")"
}));
},
sendJSONP: function (name, result) {
this.respond(mixin({}, this.baseResponse, {
status: 200,
headers: {
"Content-Type": "text/javascript"
},
body: name + "(" + JSON.stringify(result) + ")"
}));
},

sendHeaders: function (status, headers) {
this.respond(mixin({}, this.baseResponse, { status: status, headers: headers }));
Expand Down

0 comments on commit 1dba50b

Please sign in to comment.