aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Michael Lumish <mlumish@google.com>2016-01-14 18:29:56 -0800
committerGravatar Michael Lumish <mlumish@google.com>2016-01-14 18:29:56 -0800
commitd50a4ee2c257ddfadccb9d252e2b61d6ff544d96 (patch)
tree7443e15c887141fc301c96d4b232b04323e8aa8c /src
parent77b84e746fdbee79bdde0ec3697434bb8ed01e98 (diff)
parent6cf15e0f65846aab31af11e52dfc17cfbe81c24c (diff)
Merge pull request #4709 from murgatroid99/node_method_names_no_capitalize
Don't modify proto method names in service paths in Node library
Diffstat (limited to 'src')
-rw-r--r--src/node/src/common.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node/src/common.js b/src/node/src/common.js
index e4fe5a8e03..2e6c01c4d7 100644
--- a/src/node/src/common.js
+++ b/src/node/src/common.js
@@ -1,6 +1,6 @@
/*
*
- * Copyright 2015, Google Inc.
+ * Copyright 2015-2016, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -125,7 +125,7 @@ exports.getProtobufServiceAttrs = function getProtobufServiceAttrs(service) {
var prefix = '/' + fullyQualifiedName(service) + '/';
return _.object(_.map(service.children, function(method) {
return [_.camelCase(method.name), {
- path: prefix + _.capitalize(method.name),
+ path: prefix + method.name,
requestStream: method.requestStream,
responseStream: method.responseStream,
requestSerialize: serializeCls(method.resolvedRequestType.build()),