yiti-server
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -144,3 +144,7 @@ 'use strict'; | ||
if (typeof options.proxy === 'string') { | ||
var proxy = httpProxy.createProxyServer({}); | ||
let defaultConfig = {} | ||
if (options.cookie) { | ||
defaultConfig.cookieDomainRewrite = options.cookie | ||
} | ||
var proxy = httpProxy.createProxyServer(defaultConfig); | ||
before.push(function (req, res) { | ||
@@ -147,0 +151,0 @@ proxy.web(req, res, { |
{ | ||
"name": "yiti-server", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "A simple zero-configuration command-line http server", | ||
@@ -5,0 +5,0 @@ "main": "./lib/http-server", |
Sorry, the diff of this file is not supported yet
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
118695
1382