Work around dream-encoding footgun #13

Merged
reynir merged 1 commit from fix-dream-encode into main 2025-01-24 13:21:18 +00:00

1 commit

Author SHA1 Message Date
4e74c8d25f Work around dream-encoding footgun
Dream-encoding adds a Transfer-Encoding header to a response. If that
response is an error code it will go through the error handler which may
change the response - but the new response *does not* go through the
dream-encoding middleware! This means we may rewrite the response with a
plaintext message but still have the Transfer-Encoding header! This
makes clients very unhappy.
2025-01-24 13:56:57 +01:00