-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Redirect fails with HTTP2 #1603
Comments
Can you provide the code for the handler? |
I made a small example. extra info:
edit: my official server has the same erlang version, but |
Finally got to try this, thank you for the repository! There's two issues with your handler. The first one is you are not returning Starting with HTTP/2 header names have to be all lowercase. In your code you gave When updating your example repo to fix those two issues, everything works as intended:
Closing, thanks! |
My handler does a redirect (I can log it), but it never reaches the client.
Restricting server (which uses a ceriticate) to http/1.1 by specifiying
alpn_preferred_protocols
makes it all work fine.Insecure connections seem to default to HTTP1.1 as well.
Any request that is not redirected, is fulfilled normally.
cowboy 2.9.0, as well as recent git master branch (esp including commit 105edf1).
For all I know, the problem could be in cowlib or ranch.
Calling over https to my live server shows the negotiation, the certificate, and then some, but the tail is exactly the same
PS: setting max concurrent streams explicitely, makes the value sane, but does not solve the main problem.
The text was updated successfully, but these errors were encountered: