Skip to content

Improve exception message for decoded header line - #3581

Merged
idelpivnitskiy merged 1 commit into
apple:mainfrom
idelpivnitskiy:headername
Jul 22, 2026
Merged

Improve exception message for decoded header line#3581
idelpivnitskiy merged 1 commit into
apple:mainfrom
idelpivnitskiy:headername

Conversation

@idelpivnitskiy

Copy link
Copy Markdown
Member

Motivation:

Now that we enabled header values validation in #3528, HttpObjectDecoder can throw a misleading exception message saying that the header name is invalid, while it could actually be the value.

Modifications:

Improve exception message.

Result:

The top level message clarifies that either name or value are incorrect, cause can be used to identify details.

Motivation:

Now that we enabled header values validation in apple#3528,
`HttpObjectDecoder` can throw a misleading exception message saying that
the header name is invalid, while it could actually be the value.

Modifications:

Improve exception message.

Result:

The top level message clarifies that either name or value are incorrect,
cause can be used to identify details.
@idelpivnitskiy
idelpivnitskiy merged commit b50e762 into apple:main Jul 22, 2026
19 checks passed
@idelpivnitskiy
idelpivnitskiy deleted the headername branch July 22, 2026 01:31
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.

2 participants