Skip to content

Commit

Permalink
Removing unnecessary check since this is a private API
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Willis authored and indexzero committed Apr 20, 2018
1 parent f5c2381 commit bc6a237
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/http-proxy/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit bc6a237

Please sign in to comment.