Skip to content

Don't strip whitespaces from header names and let the validator handl…#14179

Merged
normanmaurer merged 2 commits into4.1from
ws_header_name
Jul 15, 2024
Merged

Don't strip whitespaces from header names and let the validator handl…#14179
normanmaurer merged 2 commits into4.1from
ws_header_name

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

…e these

Motivation:

We did strip whitespaces from the header names before trying to add these to DefaultHeaderName. We should better not do this as whitespaces as prefix of a header name are not valid in general.

Modifications:

Don't strip leading whitespaces and so let the validator handle it.

Result:

Fixes #14177

…e these

Motivation:

We did strip whitespaces from the header names before trying to add these to DefaultHeaderName. We should better not do this as whitespaces as prefix of a header name are not valid in general.

Modifications:

Don't strip leading whitespaces and so let the validator handle it.

Result:

Fixes #14177
@normanmaurer
Copy link
Copy Markdown
Member Author

/cc @vietj and @kenballus

Copy link
Copy Markdown
Contributor

@franz1981 franz1981 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm bud!

@normanmaurer normanmaurer merged commit e6a78dd into 4.1 Jul 15, 2024
@normanmaurer normanmaurer deleted the ws_header_name branch July 15, 2024 08:18
normanmaurer added a commit that referenced this pull request Jul 15, 2024
#14179)

…e these

Motivation:

We did strip whitespaces from the header names before trying to add
these to DefaultHeaderName. We should better not do this as whitespaces
as prefix of a header name are not valid in general.

Modifications:

Don't strip leading whitespaces and so let the validator handle it.

Result:

Fixes #14177
normanmaurer added a commit that referenced this pull request Jul 15, 2024
#14179)

…e these

Motivation:

We did strip whitespaces from the header names before trying to add
these to DefaultHeaderName. We should better not do this as whitespaces
as prefix of a header name are not valid in general.

Modifications:

Don't strip leading whitespaces and so let the validator handle it.

Result:

Fixes #14177
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.

Netty incorrectly strips whitespace from the beginning of the first header name

5 participants