Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Redirecting to non-ASCII URL #6609

Closed
Closed
@miloush

Description

@miloush
public IAction Index()
{
    return Redirect(Url.Content("~/ů"));
}

throws InvalidOperationException: Invalid non-ASCII or control character in header: 0x016F with no user code on stack.

The framework decided to put that URL into HTTP header which changed its encoding requirements, so I would expect it to fulfil them. Users might not know or care how the redirect is done and it is not clear what header is the error about.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions