@radpack/server
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -70,3 +70,3 @@ 'use strict'; | ||
cacheControl: false, | ||
setHeaders: this.handleSetHeaders, | ||
setHeaders: this.handleSetHeaders.bind(this), | ||
...proxyOptions | ||
@@ -247,7 +247,3 @@ }); | ||
handleSetHeaders(res) { | ||
if (res.set) { | ||
// express | ||
res.set(this.headers); | ||
} else { | ||
// http/connect | ||
if (this.headers) { | ||
Object.entries(this.headers).forEach(([key, value]) => { | ||
@@ -254,0 +250,0 @@ res.setHeader(key, value); |
@@ -61,3 +61,3 @@ import fs from 'fs'; | ||
cacheControl: false, | ||
setHeaders: this.handleSetHeaders, | ||
setHeaders: this.handleSetHeaders.bind(this), | ||
...proxyOptions | ||
@@ -238,7 +238,3 @@ }); | ||
handleSetHeaders(res) { | ||
if (res.set) { | ||
// express | ||
res.set(this.headers); | ||
} else { | ||
// http/connect | ||
if (this.headers) { | ||
Object.entries(this.headers).forEach(([key, value]) => { | ||
@@ -245,0 +241,0 @@ res.setHeader(key, value); |
{ | ||
"name": "@radpack/server", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Rapid Application Development Packaging Server Runtime", | ||
@@ -49,3 +49,3 @@ "main": "./lib/index.cjs.js", | ||
"license": "MIT", | ||
"gitHead": "40c00f14c02d8c6532cf0d16463147e3bb118b50" | ||
"gitHead": "398d21f48a73e95edcc8253f342b8eb0eaa529d9" | ||
} |
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
32480
946