[whatwg/fetch] Possible typo in header value definition (#332)

The spec defines header value as "a byte sequence that matches the field-content token production" [0, 1].

Field-content is defined as `field-content  = field-vchar [ 1*( SP / HTAB ) field-vchar ]` [2]. This seems to say that field-content is at most a field-vchar followed by some whitespace and another field-vchar. It seems wrong that it would be at most 2 vchars. 

Should the Fetch spec define header value as "a byte sequence that matches the field-value token production"? Field-value token production is defined as `field-value = *( field-content / obs-fold )` [2].

Thank you.

[0] https://fetch.spec.whatwg.org/#concept-header-name
[1] https://github.com/whatwg/fetch/blob/master/Overview.html#L440
[2] https://tools.ietf.org/html/rfc7230#section-3.2 

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/332

Received on Tuesday, 12 July 2016 21:16:56 UTC