Skip to content

Commit bc6a237

Browse files
Sean Willisindexzero
Sean Willis
authored andcommitted
Removing unnecessary check since this is a private API
1 parent f5c2381 commit bc6a237

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/http-proxy/common.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ var common = exports,
44
required = require('requires-port');
55

66
var upgradeHeader = /(^|,)\s*upgrade\s*($|,)/i,
7-
isSSL = /^https|wss/,
8-
cookieProps = ['domain', 'path'];
7+
isSSL = /^https|wss/;
98

109
/**
1110
* Simple Regex for testing if protocol is https
@@ -212,9 +211,6 @@ common.urlJoin = function() {
212211
* @api private
213212
*/
214213
common.rewriteCookieProperty = function rewriteCookieProperty(header, config, property) {
215-
if(cookieProps.indexOf(property) === -1) //Property not supported
216-
return header;
217-
218214
if (Array.isArray(header)) {
219215
return header.map(function (headerElement) {
220216
return rewriteCookieProperty(headerElement, config, property);

0 commit comments

Comments
 (0)