Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

csrf: fix typo (enumerabe -> enumerable) #880

Merged
merged 1 commit into from

2 participants

@tj
Owner
tj commented

hahahah fail

@tj tj merged commit ac93d43 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 30, 2013
  1. @pilwon

    csrf: fix typo

    pilwon authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/middleware/csrf.js
View
2  lib/middleware/csrf.js
@@ -74,7 +74,7 @@ module.exports = function csrf(options) {
// compatibility with old middleware
Object.defineProperty(req.session, '_csrf', {
- enumerabe: false,
+ enumerable: false,
configurable: true,
get: function() {
console.warn('req.session._csrf is deprecated, use req.csrfToken([callback]) instead');
Something went wrong with that request. Please try again.