diff options
author | Jorge Canizales <jcanizales@google.com> | 2016-01-21 15:49:12 -0800 |
---|---|---|
committer | Jorge Canizales <jcanizales@google.com> | 2016-01-21 15:49:12 -0800 |
commit | c12a743887550f97c7ea4db68cfd70266daa9069 (patch) | |
tree | 78ecbe4937709c32368bdb997b8e30a93c35c854 | |
parent | ff6242b40181ab5ed857e9cc9e759e5ee7c09b50 (diff) | |
parent | ab5500ea11a42a9d4982c5fbced5dd70b3889d06 (diff) |
Merge pull request #4804 from kriswuollett/kriswuollett-protomethod-httppath-fix
Fixed proto method without package naming in ObjC.
-rw-r--r-- | src/objective-c/ProtoRPC/ProtoMethod.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/objective-c/ProtoRPC/ProtoMethod.m b/src/objective-c/ProtoRPC/ProtoMethod.m index 1113b4fbaa..4b7ed63123 100644 --- a/src/objective-c/ProtoRPC/ProtoMethod.m +++ b/src/objective-c/ProtoRPC/ProtoMethod.m @@ -46,7 +46,7 @@ } - (NSString *)HTTPPath { - if (_package) { + if (_package && _package.length > 0) { return [NSString stringWithFormat:@"/%@.%@/%@", _package, _service, _method]; } else { return [NSString stringWithFormat:@"/%@/%@", _service, _method]; |