Skip to content

Commit

Permalink
fix: don't modify request object
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Jul 29, 2010
1 parent defa94b commit 38328ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/journey.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ journey.Router.prototype = {
// and ready to be processed.
route: function (request, body, callback) {
var promise = new(events.EventEmitter);
var request = Object.create(request);
var that = this;

request.url = url.parse(request.url);
Expand Down

0 comments on commit 38328ac

Please sign in to comment.