aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/server.cc
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nnoble@google.com>2015-01-26 11:41:12 -0800
committerGravatar Nicolas Noble <nnoble@google.com>2015-01-26 11:41:12 -0800
commitfee065c1c7f01207c0e484c92681cea184b1983a (patch)
tree11baf429fdee72a169bdb0b1d17f16154ab5186a /src/node/server.cc
parent614c2bf99b1865761e5a05a56faf1ad8f26138ff (diff)
parentc41704bada0dc8974e7063f84dae934931813811 (diff)
Merge branch 'master' of github.com:google/grpc into json
Conflicts: src/core/security/credentials.c
Diffstat (limited to 'src/node/server.cc')
-rw-r--r--src/node/server.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node/server.cc b/src/node/server.cc
index 64826897cd..b102775d33 100644
--- a/src/node/server.cc
+++ b/src/node/server.cc
@@ -194,7 +194,7 @@ NAN_METHOD(Server::AddHttp2Port) {
return NanThrowTypeError("addHttp2Port's argument must be a String");
}
Server *server = ObjectWrap::Unwrap<Server>(args.This());
- NanReturnValue(NanNew<Boolean>(grpc_server_add_http2_port(
+ NanReturnValue(NanNew<Number>(grpc_server_add_http2_port(
server->wrapped_server, *NanUtf8String(args[0]))));
}
@@ -208,7 +208,7 @@ NAN_METHOD(Server::AddSecureHttp2Port) {
return NanThrowTypeError("addSecureHttp2Port's argument must be a String");
}
Server *server = ObjectWrap::Unwrap<Server>(args.This());
- NanReturnValue(NanNew<Boolean>(grpc_server_add_secure_http2_port(
+ NanReturnValue(NanNew<Number>(grpc_server_add_secure_http2_port(
server->wrapped_server, *NanUtf8String(args[0]))));
}