aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/server.cc
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-01-21 16:35:09 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-01-21 16:35:09 -0800
commitdc325cd94f394dc1e018e5678deddd65a1e73a3a (patch)
treedb4906391a757f352fc4fc8e8a90fae183404851 /src/node/server.cc
parent5d8fbe266322fca7ff192a222e16733c020e4960 (diff)
parent0a6f0a5624fc7925166c2e00b1312f4b69fe1107 (diff)
Merge github.com:google/grpc into mac-fixes
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]))));
}