Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
62b9305e
Commit
62b9305e
authored
9 years ago
by
Michael Lumish
Browse files
Options
Downloads
Plain Diff
Merge pull request #3219 from jcanizales/dont-strip-bin
Don’t strip -bin suffix from response metadata.
parents
09f56917
34667063
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/objective-c/GRPCClient/private/NSDictionary+GRPC.m
+0
-3
0 additions, 3 deletions
src/objective-c/GRPCClient/private/NSDictionary+GRPC.m
with
0 additions
and
3 deletions
src/objective-c/GRPCClient/private/NSDictionary+GRPC.m
+
0
−
3
View file @
62b9305e
...
@@ -89,8 +89,6 @@
...
@@ -89,8 +89,6 @@
+
(
instancetype
)
grpc_dictionaryFromMetadata
:(
grpc_metadata
*
)
entries
count
:(
size_t
)
count
{
+
(
instancetype
)
grpc_dictionaryFromMetadata
:(
grpc_metadata
*
)
entries
count
:(
size_t
)
count
{
NSMutableDictionary
*
metadata
=
[
NSMutableDictionary
dictionaryWithCapacity
:
count
];
NSMutableDictionary
*
metadata
=
[
NSMutableDictionary
dictionaryWithCapacity
:
count
];
for
(
grpc_metadata
*
entry
=
entries
;
entry
<
entries
+
count
;
entry
++
)
{
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
];
NSString
*
name
=
[
NSString
stringWithCString
:
entry
->
key
encoding
:
NSASCIIStringEncoding
];
if
(
!
name
||
metadata
[
name
])
{
if
(
!
name
||
metadata
[
name
])
{
// Log if name is nil?
// Log if name is nil?
...
@@ -98,7 +96,6 @@
...
@@ -98,7 +96,6 @@
}
}
id
value
;
id
value
;
if
([
name
hasSuffix
:
@"-bin"
])
{
if
([
name
hasSuffix
:
@"-bin"
])
{
name
=
[
name
substringToIndex
:
name
.
length
-
4
];
value
=
[
NSData
grpc_dataFromMetadataValue
:
entry
];
value
=
[
NSData
grpc_dataFromMetadataValue
:
entry
];
}
else
{
}
else
{
value
=
[
NSString
grpc_stringFromMetadataValue
:
entry
];
value
=
[
NSString
grpc_stringFromMetadataValue
:
entry
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment