]> git.ipfire.org Git - thirdparty/squid.git/commit
ESI: convert parse exceptions into 500 status response (#411)
authorAmos Jeffries <yadij@users.noreply.github.com>
Mon, 16 Mar 2020 05:25:42 +0000 (05:25 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Sat, 28 Mar 2020 07:35:25 +0000 (20:35 +1300)
commitf69293bf12dc805b845bd9c7c0e604a0da409d29
tree29f479613b1a69da44c37ef9169c3d5e7c11d964
parent0b60ba61a58a06dc4e95c328db7d1a6115c43651
ESI: convert parse exceptions into 500 status response  (#411)

Produce a valid HTTP 500 status reply and continue operations when
ESI parser throws an exception. This will prevent incomplete ESI
responses reaching clients on server errors. Such responses might
have been cacheable and thus corrupted, albeit corrupted consistently
and at source by the reverse-proxy delivering them.
src/esi/Context.h
src/esi/Esi.cc
src/esi/Esi.h
src/esi/Expression.cc