Fixed proto method without package naming in ObjC.

pull/4804/head
Kristopher Wuollett 9 years ago
parent 15dc664547
commit ab5500ea11
  1. 2
      src/objective-c/ProtoRPC/ProtoMethod.m

@ -46,7 +46,7 @@
} }
- (NSString *)HTTPPath { - (NSString *)HTTPPath {
if (_package) { if (_package && _package.length > 0) {
return [NSString stringWithFormat:@"/%@.%@/%@", _package, _service, _method]; return [NSString stringWithFormat:@"/%@.%@/%@", _package, _service, _method];
} else { } else {
return [NSString stringWithFormat:@"/%@/%@", _service, _method]; return [NSString stringWithFormat:@"/%@/%@", _service, _method];

Loading…
Cancel
Save