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
d56550ad
Commit
d56550ad
authored
9 years ago
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
Test invalid accept-encoding values
parent
795764bf
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/core/bad_client/tests/badreq.c
+14
-0
14 additions, 0 deletions
test/core/bad_client/tests/badreq.c
test/core/bad_client/tests/badreq_algorithm.headers
+11
-0
11 additions, 0 deletions
test/core/bad_client/tests/badreq_algorithm.headers
with
25 additions
and
0 deletions
test/core/bad_client/tests/badreq.c
+
14
−
0
View file @
d56550ad
...
@@ -96,5 +96,19 @@ int main(int argc, char **argv) {
...
@@ -96,5 +96,19 @@ int main(int argc, char **argv) {
"
\x10\x0a
user-agent
\"
bad-client grpc-c/0.12.0.0 (linux)"
,
"
\x10\x0a
user-agent
\"
bad-client grpc-c/0.12.0.0 (linux)"
,
GRPC_BAD_CLIENT_DISCONNECT
);
GRPC_BAD_CLIENT_DISCONNECT
);
/* bad accept-encoding algorithm */
GRPC_RUN_BAD_CLIENT_TEST
(
verifier
,
PFX_STR
"
\x00\x00\xd2\x01\x04\x00\x00\x00\x01
"
"
\x10\x05
:path
\x08
/foo/bar"
"
\x10\x07
:scheme
\x04
http"
"
\x10\x07
:method
\x04
POST"
"
\x10\x0a
:authority
\x09
localhost"
"
\x10\x0c
""content-type
\x10
""application/grpc"
"
\x10\x14
grpc-accept-encoding
\x1e
nobody-knows-the-trouble-i-see"
"
\x10\x02
te
\x08
trailers"
"
\x10\x0a
user-agent
\"
bad-client grpc-c/0.12.0.0 (linux)"
,
GRPC_BAD_CLIENT_DISCONNECT
);
return
0
;
return
0
;
}
}
This diff is collapsed.
Click to expand it.
test/core/bad_client/tests/badreq_algorithm.headers
0 → 100644
+
11
−
0
View file @
d56550ad
# headers used in badreq.c
# use tools/codegen/core/gen_header_frame.py to generate the binary strings
# contained in the source code
:path: /foo/bar
:scheme: http
:method: POST
:authority: localhost
content-type: application/grpc
grpc-accept-encoding: nobody-knows-the-trouble-i-see
te: trailers
user-agent: bad-client grpc-c/0.12.0.0 (linux)
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