proxy-middleware
Advanced tools
Comparing version 0.13.0 to 0.13.1
@@ -7,2 +7,6 @@ var os = require('os'); | ||
module.exports = function proxyMiddleware(options) { | ||
//enable ability to quickly pass a url for shorthand setup | ||
if(typeof options === 'string'){ | ||
options = require('url').parse(options); | ||
} | ||
@@ -12,6 +16,2 @@ var httpLib = options.protocol === 'https:' ? https : http; | ||
//enable ability to quickly pass a url for shorthand setup | ||
if(typeof options === 'string'){ | ||
options = require('url').parse(options); | ||
} | ||
options = options || {}; | ||
@@ -18,0 +18,0 @@ options.hostname = options.hostname; |
{ | ||
"name": "proxy-middleware", | ||
"version": "0.13.0", | ||
"version": "0.13.1", | ||
"description": "http(s) proxy as connect 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
7943