Skip to content

Fix safety documentation of HeaderValue::from_maybe_shared_unchecked() - #873

Open
orium wants to merge 1 commit into
hyperium:masterfrom
orium:header-value-doc
Open

Fix safety documentation of HeaderValue::from_maybe_shared_unchecked()#873
orium wants to merge 1 commit into
hyperium:masterfrom
orium:header-value-doc

Conversation

@orium

@orium orium commented Sep 10, 2026

Copy link
Copy Markdown

The documentation said that non-UTF-8 input causes undefined behavior, which is not the case.

Add tests covering non-UTF-8 and invalid header-value sequences.

Ref #871.

…()`.

The documentation said that non-UTF-8 input causes undefined behavior, which is
not the case.

Add tests covering non-UTF-8 and invalid header-value sequences.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant