From 05dcc189aa818d7b7ab8b3458909d09eb1b5862f Mon Sep 17 00:00:00 2001 From: Adam Brunner Date: Mon, 11 Jul 2016 11:40:04 +0200 Subject: [PATCH] fix(middleware): change RequestId middleware's config to work with Heroku by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BREAKING CHANGE: RequestId’s default configuration had been changed. The default header and query params are ‘x-request-id’. --- app/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/index.js b/app/index.js index 90e6343..162dc7e 100644 --- a/app/index.js +++ b/app/index.js @@ -89,7 +89,7 @@ App.prototype = { addRequestIdmiddleware: function(options) { - options = options || { expose: false, header: 'request-id', query: 'request-id' }; + options = options || { expose: 'x-request-id', header: 'x-request-id', query: 'x-request-id' }; this.addMiddleware(requestId(options)); },