Skip to content

Tests: whitespace stripping in HTTP/2 field values. - #80

Open
Aayush7352 wants to merge 1 commit into
nginx:masterfrom
Aayush7352:fix/h2-h3-value-whitespace-598
Open

Tests: whitespace stripping in HTTP/2 field values.#80
Aayush7352 wants to merge 1 commit into
nginx:masterfrom
Aayush7352:fix/h2-h3-value-whitespace-598

Conversation

@Aayush7352

Copy link
Copy Markdown

Summary

Regression tests for HTTP/2 field value whitespace stripping (nginx/nginx#1572).

What it covers

Four new subtests in h2_headers.t verify that leading and trailing
SP (0x20) and HTAB (0x09) characters are stripped from HTTP/2 field
values per RFC 9113 Section 8.2.2:

  • Leading spaces stripped (' abc' -> 'abc')
  • Trailing spaces stripped ('def ' -> 'def')
  • Both sides stripped (' ghi ' -> 'ghi')
  • Tab characters stripped ('\tjkl\t' -> 'jkl')

Verified

Without the nginx side fix all 4 subtests fail (values arrive with
whitespace intact). With the fix all 116 subtests pass.

Related: nginx/nginx#1572, nginx/nginx#598

Added tests checking that leading and trailing SP and HTAB characters
in HTTP/2 header field values are stripped per RFC 9113, Section 8.2.2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

2 participants