You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
While I'm looking at how key-value pairs are parsed from the baggage header here, I think it include the space and tab, which are valid characters according to the doc, in the key or value.
For example, if I have a baggage header whose content is "key = value", the current behavior returns "key " and " value" (including the whitespace).
I think a better Regex expression could be (%S+)%s*=%s*(%S+)
The text was updated successfully, but these errors were encountered:
Leading and trailing whitespaces (OWS) are allowed and are not considered to be a part of the key. Leading and trailing whitespaces (OWS) are allowed and are not considered to be a part of the value.
I think we can trim the key and value after split.
Hello,
While I'm looking at how key-value pairs are parsed from the baggage header here, I think it include the space and tab, which are valid characters according to the doc, in the key or value.
For example, if I have a baggage header whose content is "key = value", the current behavior returns "key " and " value" (including the whitespace).
I think a better Regex expression could be
(%S+)%s*=%s*(%S+)
The text was updated successfully, but these errors were encountered: