]> 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)
committerSquid Anubis <squid-anubis@squid-cache.org>
Wed, 18 Mar 2020 15:05:47 +0000 (15:05 +0000)
commitf66e113ee7f6dbbc767c853752ea5585c9e7cca8
treef3c969320af7c605ffa1f0d4ad4d28c4a1b86299
parent71ceb65f64390a0fdd0172ca4df686e598c26f22
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