-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Redirector issue in TLS example #2795
Comments
This has been fixed on master. I couldn't identify the commit that fixed the issue, but the issue was that the TLS redirector would not redirect to the correct port. |
The issue was related to versions 0.5.0 and 0.5.1 and fix from master with in these two versions non-existent Rocket::endpoints() is no worth for the newcomers which would like to try "latest/stable" version of Rocket. |
@incognito75 I went ahead and fixed the example in the v0.5 branch as well. Thank you for letting us know! |
@SergioBenitez We need now only 308 permanent redirect for this example. 😊 |
I've purposefully made it to be a temporary redirect: if you change the port or address, for instance, using a permanent redirect would mean that the example wouldn't work as excepted as the browser will cache the earlier response, redirecting you to the earlier port/address. But we want it to work even then. Keep in mind that this is an example, not a library. The purpose is to be a stepping stone for modifications. |
Rocket Version
0.5.0, 0.5.1
Operating System
Debian GNU/Linux 12
Rust Toolchain Version
rustc 1.78.0 (9b00956e5 2024-04-29)
What happened?
The redirector doesn't properly redirect to https port in branches v0.5.0 and v0.5.1
Browser console output:
Steps to reproduce:
Test Case
None
Log Output
Additional Context
The last to me known and with v0.5.0 still working example of the redirector.rs was the one before commit fd29404
System Checks
rustc
toolchain.The text was updated successfully, but these errors were encountered: