forked from svrjs/svrjs
Optimize HTTP/1.x compatiblity res.writeHead function
This commit is contained in:
parent
0e44109776
commit
52e729f51d
1 changed files with 1 additions and 2 deletions
3
svr.js
3
svr.js
|
@ -2927,8 +2927,7 @@ if (!cluster.isPrimary) {
|
|||
if (typeof (b) == "object") table = b;
|
||||
if (table == undefined) table = this.tHeaders;
|
||||
table = JSON.parse(JSON.stringify(table));
|
||||
var tableKeysT = Object.keys(table);
|
||||
tableKeysT.forEach(function (key) {
|
||||
Object.keys(table).forEach(function (key) {
|
||||
var al = key.toLowerCase();
|
||||
if (al == "transfer-encoding" || al == "connection" || al == "keep-alive" || al == "upgrade") delete table[key];
|
||||
});
|
||||
|
|
Reference in a new issue