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

Commit

Permalink
Merge pull request #57 from adobe/ingo/fix-internal-server-error
Browse files Browse the repository at this point in the history
Fix the internal server error
  • Loading branch information
ingorichter committed Aug 6, 2014
2 parents 85e5de0 + b05255a commit 4d13856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ app.configure(function () {
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.session({ secret: config.sessionSecret }));
app.use(passport.initialize());
app.use(passport.session());

// this route is accessible from localhost only and no csrf should be applied
app.post("/stats", downloadData.collectDownloadedData);

app.use(passport.initialize());
app.use(passport.session());
app.use(express.csrf());
app.use(function (req, res, next) {
// Must come before router (so locals are exposed properly) but after the CSRF middleware
Expand Down

0 comments on commit 4d13856

Please sign in to comment.