Skip to content

HttpClient send with no-ascii header value throw exception #30430

@summeney

Description

@summeney

header value is no-ascii. we should pass.
but....

HttpConnection.cs
await WriteStringAsync(header.Value[0]).ConfigureAwait(false);

throw exception in WriteStringAsync

                if ((c & 0xFF80) != 0)
                {
                    throw new HttpRequestException(SR.net_http_request_invalid_char_encoding);
                }

boom...............

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions