Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ee10: DefaultServlet: Replace checks for isStreaming() by !isWriting()
Checking for isStreaming() will return false even when no data has been written yet. This erroneously triggers double-encoding of binary data in a Writer. If the Writer is not set to ISO-8859-1 or similar, the output will be corrupted, causing errors like "java.io.IOException: written 25746 > 12014 content-length", and interrupted transmissions. Replace the isStreaming() check by !isWriting(). #9134 Signed-off-by: Christian Kohlschütter <[email protected]>
- Loading branch information