mirror of https://github.com/grpc/grpc-node.git
Fix one more incorrect metadata structure
This commit is contained in:
parent
d4e1672071
commit
836515f87e
|
|
@ -772,7 +772,7 @@ Server.prototype.start = function() {
|
||||||
batch[grpc.opType.SEND_STATUS_FROM_SERVER] = {
|
batch[grpc.opType.SEND_STATUS_FROM_SERVER] = {
|
||||||
code: constants.status.UNIMPLEMENTED,
|
code: constants.status.UNIMPLEMENTED,
|
||||||
details: 'RPC method not implemented ' + method,
|
details: 'RPC method not implemented ' + method,
|
||||||
metadata: {}
|
metadata: (new Metadata())._getCoreRepresentation()
|
||||||
};
|
};
|
||||||
batch[grpc.opType.RECV_CLOSE_ON_SERVER] = true;
|
batch[grpc.opType.RECV_CLOSE_ON_SERVER] = true;
|
||||||
call.startBatch(batch, function() {});
|
call.startBatch(batch, function() {});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue