Closed
Description
Redirecting using location like this:
res.headers_mut().set(hyper::header::common::location::Location("/newlocation".to_string()));
ends up going to the url http://127.0.0.1:1337/"newlocation" instead of http://127.0.0.1:1337/newlocation. Using set_raw works fine:
res.headers_mut().set_raw("Location", vec![b"/newlocation".to_vec()]);
Metadata
Metadata
Assignees
Labels
No labels