Skip to content

Location redirects to url with quotes #246

Closed
@lodle

Description

@lodle

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions