Permalink
Browse files

adding xhr header

  • Loading branch information...
1 parent 7c0bfce commit 6c074872210e2a2500717a7ec6a9f33dccf44b08 @tylergraf tylergraf committed Feb 11, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/fs-superagent.js
View
1 lib/fs-superagent.js
@@ -48,6 +48,7 @@ function fsSuperagent(config, addlRequestHandler) {
// TODO: Add centralized metric logging (BEGIN);
request.set('accept', 'application/json');
+ request.set('X-Requested-With','XMLHttpRequest'); // so that express sets req.xhr = true.
// Do we want a default timeout on the client?
// request.timeout(20000);

0 comments on commit 6c07487

Please sign in to comment.