[BUG] string.well_known_regex
cannot handle binary HTTP header values
#263
Labels
Bug
Something isn't working
Description
well_known_regex
is on astring
type.string
must be a valid UTF-8 encoded Unicode code point sequence. But HTTP header values don't have to be. I.e. valid HTTP header values cannot be represented as a protostring
. Yet the validation rule is on thestring
type.Steps to Reproduce
Prints:
Expected Behavior
Validation rule should be on
bytes
. At least there too, not just onstring
.Actual Behavior
Validation rule on
string
that is problematic.Possible Solution
Additional Context
HTTP header value spec: https://datatracker.ietf.org/doc/html/rfc9110#name-field-values
The text was updated successfully, but these errors were encountered: