Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bug with encoded responses (honojs#11)
This change fixes how we write out a response body so that we can support encoded responses Previously we would cause a content encoding error by calling `res.text()` on responses even if they are encoded (`br`,`gzip` etc). Now we check if the response has the `content-encoding` header and use the read/write stream instead if it does.
- Loading branch information