server-timing
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -28,3 +28,5 @@ 'use strict' | ||
timer.clear() | ||
res.setHeader('Server-Timing', headers.join(', ')) | ||
const existingHeaders = res.getHeader('Server-Timing') | ||
res.setHeader('Server-Timing', [].concat(existingHeaders || []).concat(headers).join(', ')) | ||
}) | ||
@@ -31,0 +33,0 @@ if (typeof next === 'function') { |
{ | ||
"name": "server-timing", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "This module can add `ServerTiming` Header to http response, and be able to use express middleware", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16960
431