Comparing version 16.0.8 to 16.1.0
@@ -22,2 +22,3 @@ "use strict"; | ||
this.charset = charset; | ||
this.corsExpose = ""; | ||
this.defaultHeaders = Object.keys(defaultHeaders).map(key => [key.toLowerCase(), defaultHeaders[key]]); | ||
@@ -190,3 +191,3 @@ this.digit = digit; | ||
if (req.cors) { | ||
const headers = req.headers["access-control-request-headers"]; | ||
const headers = req.headers["access-control-request-headers"] || this.corsExpose; | ||
@@ -193,0 +194,0 @@ res.header("access-control-allow-origin", req.headers.origin); |
{ | ||
"name": "woodland", | ||
"version": "16.0.8", | ||
"version": "16.1.0", | ||
"description": "Lightweight HTTP router with automatic headers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -101,2 +101,3 @@ <img src="https://avoidwork.github.io/woodland/logo.svg" width="108" /> | ||
"charset": "utf-8", | ||
"corsExpose": "", | ||
"defaultHeaders": {}, | ||
@@ -103,0 +104,0 @@ "digit": 3, |
Sorry, the diff of this file is too big to display
141436
688
191