Skip to content

Commit bcdb544

Browse files
committed
Fixed of losing context of existing headers in response
It fixes losing context in response in case when here 3 or more Set-Cookie headers. Closes: #1621
1 parent 7e1f4a7 commit bcdb544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nodejs/unit-http/http_server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ ServerResponse.prototype._removeHeader = function _removeHeader(lc_name) {
153153
this.headers_count -= value.length;
154154
this.headers_len -= value.length * name_len;
155155

156-
value.forEach(function(val) {
156+
value.forEach(val => {
157157
this.headers_len -= Buffer.byteLength(val + "", 'latin1');
158158
});
159159

0 commit comments

Comments
 (0)