You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux lab-phgl 6.2.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 30 Mar 2023 14:51:14 +0000 x86_64 GNU/Linux
Crates
Cargo.tom:
[package]
name = "example-bug"version = "0.1.0"edition = "2021"publish = false
[dependencies]
axum = { path = "../../axum", features = ["headers", "http2" ] }
tokio = { version = "1.0", features = ["full"] }
Description
I cannot extract the host header (I have not tried other headers), if using http2. i needed to use --http2-prior-knowledge or https (using the axum-server crate).
Bug Report
Version
24f8dc5 (head)
Platform
Linux lab-phgl 6.2.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 30 Mar 2023 14:51:14 +0000 x86_64 GNU/Linux
Crates
Cargo.tom:
Description
I cannot extract the host header (I have not tried other headers), if using http2. i needed to use
--http2-prior-knowledge
or https (using the axum-server crate).curl --http2 --http2-prior-knowledge -v 'http://localhost:3000/'
works, but
curl --http2 --http2-prior-knowledge -v 'http://localhost:3000/host'
breaks.
I tried this code:
I expected to see this happen:
With the above curl command, I expect:
(status 200)
Instead, this happened:
(status 400)
The text was updated successfully, but these errors were encountered: