Skip to content

Commit

Permalink
name functions for easier debugging of express stack
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaefer committed May 10, 2011
1 parent 685229c commit 26ec80e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/middleware.js
@@ -1,6 +1,6 @@
exports = module.exports = require('express');

exports['csrf'] = function() {
exports['csrf'] = function csrf() {
return function(req, res, next) {
if (req.method === 'GET') {
next();
Expand All @@ -13,7 +13,7 @@ exports['csrf'] = function() {
}
};

exports['fragmentRedirect'] = function() {
exports['fragmentRedirect'] = function fragmentRedirect() {
return function(req, res, next) {
// @see https://code.google.com/web/ajaxcrawling/docs/specification.html
if (req.query._escaped_fragment_ === undefined) {
Expand Down

0 comments on commit 26ec80e

Please sign in to comment.