mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Removing unnecessary check since this is a private API
This commit is contained in:
parent
f5c2381395
commit
bc6a23709c
@ -4,8 +4,7 @@ var common = exports,
|
||||
required = require('requires-port');
|
||||
|
||||
var upgradeHeader = /(^|,)\s*upgrade\s*($|,)/i,
|
||||
isSSL = /^https|wss/,
|
||||
cookieProps = ['domain', 'path'];
|
||||
isSSL = /^https|wss/;
|
||||
|
||||
/**
|
||||
* Simple Regex for testing if protocol is https
|
||||
@ -212,9 +211,6 @@ common.urlJoin = function() {
|
||||
* @api private
|
||||
*/
|
||||
common.rewriteCookieProperty = function rewriteCookieProperty(header, config, property) {
|
||||
if(cookieProps.indexOf(property) === -1) //Property not supported
|
||||
return header;
|
||||
|
||||
if (Array.isArray(header)) {
|
||||
return header.map(function (headerElement) {
|
||||
return rewriteCookieProperty(headerElement, config, property);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user