w3c / baggage

Propagation format for distributed context: Baggage
https://w3c.github.io/baggage/
Other
47 stars 18 forks source link

Remove unenforceable requirement to strip whitespace #87

Closed dyladan closed 2 years ago

dyladan commented 2 years ago

Requiring OWS to be stripped when the header is parsed into a data structure is unenforceable and unnecessarily prescriptive. This specification deals with the wire format, not the in-memory representation of the data it carries. OWS should either be allowed or not and the implementer can decide if it should be stripped.


Preview | Diff

dyladan commented 2 years ago

I agree that we cannot dictate the processing of the tokens, but I think the intention of those clauses was to say that whitespace is not part of the tokens. I.e. if I receive key=" abc" I am allowed to send it further as just key="abc", I am not required to preserve whitespace. Unless we say that elsewhere, I would suggest not removing the clauses but rewording them.

Updated PTAL