From ab5500ea11a42a9d4982c5fbced5dd70b3889d06 Mon Sep 17 00:00:00 2001
From: Kristopher Wuollett <klw@google.com>
Date: Wed, 20 Jan 2016 21:04:32 -0500
Subject: [PATCH] Fixed proto method without package naming in ObjC.

---
 src/objective-c/ProtoRPC/ProtoMethod.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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];
-- 
GitLab