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
Whenever I do a redirect, I get a 404 on the page redirected to, even though the url exists when I reload the exact same url. I have checked the http responses of /auth/login and the page redirected to, and they are both valid.
I should also mention that the router is mounted using mount:
letmut router_mount = Mount::new();// Mount the static folder on the static route
router_mount
.mount("/", routes::all()).mount("/static/",Static::new(Path::new("src/static")));
The behaviour doesn't change when I don't use mount, but chain the routes directly.
Had some time to debug, whenever a POST redirects, the method property of the request is the following:
Extension("content=Hallo+dit+is+een+test!GET")
Where the part content=Hallo+dit+is+een+test! is the content from the post request that redirected.
When a GET request redirects, this behaviour doesn't appear and the method is as expected. I am not that familiar with Iron, so it would be great if someone can help me find the code that causes this so I can fix it.
Whenever I do a redirect, I get a 404 on the page redirected to, even though the url exists when I reload the exact same url. I have checked the http responses of /auth/login and the page redirected to, and they are both valid.
This is what my handler looks like at the moment.
The text was updated successfully, but these errors were encountered: