aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Michael Lumish <mlumish@google.com>2015-09-03 09:19:55 -0700
committerGravatar Michael Lumish <mlumish@google.com>2015-09-03 09:19:55 -0700
commit62b9305e204ac36d02655d958cebef9c0cef240a (patch)
treea5df3cb066d712252fe6e9b0c0d59eecb1be1089
parent09f56917db301c328a4a9191df6124cf19869d07 (diff)
parent34667063def4ccecc46e2e2c382670679103c69f (diff)
Merge pull request #3219 from jcanizales/dont-strip-bin
Don’t strip -bin suffix from response metadata.
-rw-r--r--src/objective-c/GRPCClient/private/NSDictionary+GRPC.m3
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 a7f6d34ed5..7477da7619 100644
--- a/src/objective-c/GRPCClient/private/NSDictionary+GRPC.m
+++ b/src/objective-c/GRPCClient/private/NSDictionary+GRPC.m
@@ -89,8 +89,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?
@@ -98,7 +96,6 @@
}
id value;
if ([name hasSuffix:@"-bin"]) {
- name = [name substringToIndex:name.length - 4];
value = [NSData grpc_dataFromMetadataValue:entry];
} else {
value = [NSString grpc_stringFromMetadataValue:entry];