Skip to content

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

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...............

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions