
var config = require("../config/config.js");
var _ = require("lodash");


module.exports = function *(next) {
    var headers = this.req.headers;


    if (config.api_token === "Not-a-real-token") {
        yield next;
***REMOVED***
    else if (_.get(headers, "x-token") === config.api_token) {
        yield next;
***REMOVED***
    ***REMOVED***
        this.response.status  = 401;
        this.response.message = "Please provide the correct Authorization header";
        return;
***REMOVED***

***REMOVED***;
@@ -286,16 +286,105 @@
 pi_token
+ %7C%7C _.get(headers, %22x-token%22) === %22Banananana-ram mystic fleet 3!sixtyfivethousand world%22
 ) %7B%0A    

Include old token