diff options
author | Kristopher Wuollett <klw@google.com> | 2016-01-20 21:04:32 -0500 |
---|---|---|
committer | Kristopher Wuollett <klw@google.com> | 2016-01-20 22:06:51 -0500 |
commit | ab5500ea11a42a9d4982c5fbced5dd70b3889d06 (patch) | |
tree | 3f85dd34e86a390b2210e154483f5e0e73b62e88 /src | |
parent | 15dc6645474f618d776311a59b8123c79bfb2449 (diff) |
Fixed proto method without package naming in ObjC.
Diffstat (limited to 'src')
-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]; |