Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
Remove uncessary bind, add semicolons for style.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianloveswords committed Nov 19, 2013
1 parent 50e3c18 commit 8700d6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client-sessions.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,10 +422,10 @@ var cookieSession = function(opts) {

req[propertyName] = raw_session.monitor();

var writeHead = res.writeHead.bind(res)
var writeHead = res.writeHead;
res.writeHead = function () {
raw_session.updateCookie();
return writeHead.apply(res, arguments)
return writeHead.apply(res, arguments);
}

next();
Expand Down

2 comments on commit 8700d6a

@brianloveswords
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Can you publish a new version to npm when you get a chance? Thanks!

@seanmonstar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.