GaloisInc / daedalus

The Daedalus data description language
BSD 3-Clause "New" or "Revised" License
66 stars 11 forks source link

HTTP/1.1 spec should accept OWS at the end of header values #336

Closed kenballus closed 1 year ago

kenballus commented 1 year ago

From the RFC:

field-line = field-name ":" OWS field-value OWS OWS = *( SP / HTAB )

The following HTTP request is incorrectly rejected by Daedalus, because of the space after the v:

GET / HTTP/1.1\r\nH: v \r\n\r\n

The DDL spec should be updated to allow whitespace on the right side of a header value.