Work around dream-encoding footgun #13
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-dream-encode"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
I opened an issue in dream-encoding about this footgun: https://github.com/tmattio/dream-encoding/issues/6
Fixes #15