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
4edf8321
Commit
4edf8321
authored
9 years ago
by
Jorge Canizales
Browse files
Options
Downloads
Patches
Plain Diff
Don’t strip -bin suffix from response metadata.
parent
9455a4ec
No related branches found
No related tags found
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 @
4edf8321
...
...
@@ -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
];
...
...
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