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

How is this for field-content?

`field-content = [field-vchar [*(field-vchar/SP/HTAB/obs-fold) field-vchar]]`

The notes from the errata linked above says:

> -what the authors propably wanted to say:
> a string of octets is a field-value if, and only if:
> -it is *( field-vchar / SP / HTAB / obs-fold )
> -if it is not empty, it starts and ends with field-vchar

With this re-write, you can:
1) have an empty field-content string, or
2) have a single field-vchar, or
3) have two field-vchars sandwiching some optional content

I guess we then get rid of field-value altogether.

---
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#issuecomment-233028241

Received on Friday, 15 July 2016 18:19:47 UTC