diff options
author | Jorge Canizales <jcanizales@google.com> | 2015-09-02 23:46:40 -0700 |
---|---|---|
committer | Jorge Canizales <jcanizales@google.com> | 2015-09-03 14:05:14 -0700 |
commit | 4edf83216ed009e9a86784fafde4144e22fec119 (patch) | |
tree | f0cc79b42b3fc6d8c912079fc3ba211e6adc3329 /src/objective-c | |
parent | 9455a4ec2d415d7e2466c09ef1f0a9642aa3fbd7 (diff) |
Don’t strip -bin suffix from response metadata.
Diffstat (limited to 'src/objective-c')
-rw-r--r-- | src/objective-c/GRPCClient/private/NSDictionary+GRPC.m | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/objective-c/GRPCClient/private/NSDictionary+GRPC.m b/src/objective-c/GRPCClient/private/NSDictionary+GRPC.m index 99c890e4ee..584fc8a8c1 100644 --- a/src/objective-c/GRPCClient/private/NSDictionary+GRPC.m +++ b/src/objective-c/GRPCClient/private/NSDictionary+GRPC.m @@ -105,8 +105,6 @@ + (instancetype)grpc_dictionaryFromMetadata:(grpc_metadata *)entries count:(size_t)count { NSMutableDictionary *metadata = [NSMutableDictionary dictionaryWithCapacity:count]; for (grpc_metadata *entry = entries; entry < entries + count; entry++) { - // TODO(jcanizales): Verify in a C library test that it's converting header names to lower case - // automatically. NSString *name = [NSString stringWithCString:entry->key encoding:NSASCIIStringEncoding]; if (!name || metadata[name]) { // Log if name is nil? @@ -114,7 +112,6 @@ } id value; if ([name hasSuffix:@"-bin"]) { - name = [name substringToIndex:name.length - 4]; value = [NSData grpc_dataFromMetadataValue:entry]; } else { value = [NSString grpc_stringFromMetadataValue:entry]; |