Skip to content

Commit

Permalink
Merge pull request grpc#4804 from kriswuollett/kriswuollett-protometh…
Browse files Browse the repository at this point in the history
…od-httppath-fix

Fixed proto method without package naming in ObjC.
  • Loading branch information
jcanizales committed Jan 21, 2016
2 parents ff6242b + ab5500e commit c12a743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/objective-c/ProtoRPC/ProtoMethod.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ - (instancetype)initWithPackage:(NSString *)package
}

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

0 comments on commit c12a743

Please sign in to comment.