Removing unnecessary check since this is a private API

This commit is contained in:
Sean Willis 2018-02-21 10:19:34 -08:00 committed by Charlie Robbins
parent f5c2381395
commit bc6a23709c

View File

@ -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);