Definition of HTTP field-content is stricter than validate_headers
#4221
Labels
a=Implement
Issue is ready for implementation
validate_headers
#4221
Upon review I noticed that our
validate_headers
implementation from #3407varnish-cache/bin/varnishd/cache/cache_vrt.c
Lines 542 to 552 in 58e2e8a
varnish-cache/include/vct.h
Lines 88 to 89 in 58e2e8a
allows
*( field-vchar / SP / HTAB)
while already RFC7230 definedThis has not changed with RFC9110, which removed the line folding:
Unless I overlook anything (again), I think we can summarize as "any positive amount of SP/HTAB needs to be enclosed by field-vchar", which should be equivalent to "the last and first character of field-content need to be field-vchar".
Do we want to make our implementation more strict?
The text was updated successfully, but these errors were encountered: