Skip to content

[k2] relax constraints on HTTP content-type header#1513

Merged
apolyakov merged 1 commit intomasterfrom
apolyakov/k2-relax-constaints-on-http-content-type-header
Jan 29, 2026
Merged

[k2] relax constraints on HTTP content-type header#1513
apolyakov merged 1 commit intomasterfrom
apolyakov/k2-relax-constaints-on-http-content-type-header

Conversation

@apolyakov
Copy link
Copy Markdown
Contributor

@apolyakov apolyakov commented Jan 28, 2026

This PR updates the validation logic for the Content-Type header. Previously, the header was required to exactly match application/x-www-form-urlencoded and other content types. With this change, the validation is relaxed: the Content-Type header now only needs to contain application/x-www-form-urlencoded (or other).

@apolyakov apolyakov self-assigned this Jan 28, 2026
@apolyakov apolyakov added bug Something isn't working k2 Affects compiler or runtime in K2 mode labels Jan 28, 2026
@apolyakov apolyakov added this to the next milestone Jan 28, 2026
@apolyakov apolyakov marked this pull request as ready for review January 28, 2026 16:48
@apolyakov apolyakov merged commit c877d88 into master Jan 29, 2026
7 checks passed
@apolyakov apolyakov deleted the apolyakov/k2-relax-constaints-on-http-content-type-header branch January 29, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working k2 Affects compiler or runtime in K2 mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants