Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
jsonrpsee
Commits
5a2f6f11
Unverified
Commit
5a2f6f11
authored
Sep 01, 2022
by
Alexander Polakov
Committed by
GitHub
Sep 01, 2022
Browse files
fix(http_server): in http2 host is not passed in headers (#866)
parent
49f260eb
Pipeline
#212030
passed with stages
in 5 minutes and 15 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
http-server/src/server.rs
View file @
5a2f6f11
...
...
@@ -449,6 +449,10 @@ impl<L: Logger> ServiceData<L> {
let
host
=
match
http_helpers
::
read_header_value
(
request
.headers
(),
"host"
)
{
Some
(
origin
)
=>
origin
,
None
if
request
.version
()
==
hyper
::
Version
::
HTTP_2
=>
match
request
.uri
()
.host
()
{
Some
(
origin
)
=>
origin
,
None
=>
return
response
::
malformed
(),
},
None
=>
return
response
::
malformed
(),
};
let
maybe_origin
=
http_helpers
::
read_header_value
(
request
.headers
(),
"origin"
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment