mirror of https://github.com/grpc/grpc-node.git
Merge pull request #1548 from richardpringle/master
Prevent mutation of default headers
This commit is contained in:
commit
c0b80a3593
|
@ -425,7 +425,7 @@ export class Http2ServerCallStream<
|
|||
this.metadataSent = true;
|
||||
const custom = customMetadata ? customMetadata.toHttp2Headers() : null;
|
||||
// TODO(cjihrig): Include compression headers.
|
||||
const headers = Object.assign(defaultResponseHeaders, custom);
|
||||
const headers = Object.assign({}, defaultResponseHeaders, custom);
|
||||
this.stream.respond(headers, defaultResponseOptions);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue