Created
May 20, 2014 15:32
-
-
Save ebbersjathomes/1fc9c5d4e76cb9fa75db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by ebbersj on 5/20/14. | |
*/ | |
module.exports = function(req, res, next){ | |
if(req.get("Content-Type") != "application/json" && req.get("content-type") != "application/json"){ | |
next({"responseCode" : 406, "responseMessage" : "Not Acceptable", "message" : "Not Acceptable"}); | |
} else { | |
next(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment