Skip to content

Commit

Permalink
fix(middleware): change RequestId middleware's config to work with He…
Browse files Browse the repository at this point in the history
…roku by default

BREAKING CHANGE: RequestId’s default configuration had been changed.
The default header and query params are ‘x-request-id’.
  • Loading branch information
Adam Brunner committed Jul 11, 2016
1 parent 3e17880 commit 05dcc18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
},

Expand Down

0 comments on commit 05dcc18

Please sign in to comment.