-
-
Notifications
You must be signed in to change notification settings - Fork 723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add filter to get the host or :authority #432
Comments
hum, doesn't seem to me this is a bug, when warp is serving using TLS, clients offer Http2 using ALPN, hyper then upgrades the connection to Http2, and per the Http2 spec:
accessing the host via |
Thanks, I will try both when I get home. |
I first tried extracting
Other info:
However, |
Oops, nevermind. It looks like |
ah! you are right! struct FulllPath(String) instead pub fn full() -> impl Filter<Extract = One<FullPath>, Error = Infallible> + Copy {
filter_fn(move |route| {
future::ok(one(FullPath(route.uri().to_string())))
})
} cc @seanmonstar |
We could add a Probably return some newtype |
ah yeah, totally forgot that changing |
This is considered fixed due to the issues mentioned above this comment, right? |
This issue can be closed. |
solved with #676 |
It appears that when using TLS with Warp, the HTTP Host header is stripped. Therefore,
warp::header<String>("host")
on a TLS server will fail.Ironically, the Haskell framework with the same name had an identical bug: yesodweb/wai#478
The text was updated successfully, but these errors were encountered: