express-request-id
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -8,3 +8,3 @@ 'use strict'; | ||
options.uuidVersion = options.uuidVersion || 'v4'; | ||
options.setHeader = options.setHeader !== false; | ||
options.setHeader = options.setHeader === undefined || !!options.setHeader; | ||
@@ -11,0 +11,0 @@ return function (req, res, next) { |
{ | ||
"name": "express-request-id", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Generate UUID for request and add it to headers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# express-request-id [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] | ||
> Generate UUID for request and add it to headers | ||
Generate UUID for request and add it to `X-Request-Id` header. | ||
```js | ||
@@ -42,3 +43,3 @@ | ||
MIT (c) 2013 Vsevolod Strukchinsky (floatdrop@gmail.com) | ||
MIT (c) 2014 Vsevolod Strukchinsky (floatdrop@gmail.com) | ||
@@ -45,0 +46,0 @@ [npm-url]: https://npmjs.org/package/express-request-id |
Sorry, the diff of this file is not supported yet
50
3775