mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-09 11:27:29 +08:00
[O] Ignore errors on EOF
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package icu.samnyan.aqua.sega.general.filter;
|
package icu.samnyan.aqua.sega.general.filter;
|
||||||
|
|
||||||
import icu.samnyan.aqua.sega.util.Compression;
|
import icu.samnyan.aqua.sega.util.Compression;
|
||||||
|
import org.eclipse.jetty.io.EofException;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
@@ -64,8 +65,11 @@ public class CompressionFilter extends OncePerRequestFilter {
|
|||||||
response.setContentType("application/json; charset=utf-8");
|
response.setContentType("application/json; charset=utf-8");
|
||||||
response.addHeader("Content-Encoding", "deflate");
|
response.addHeader("Content-Encoding", "deflate");
|
||||||
|
|
||||||
response.getOutputStream().write(respResult);
|
try {
|
||||||
|
response.getOutputStream().write(respResult);
|
||||||
|
} catch (EofException e) {
|
||||||
|
logger.warn("Client closed connection");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user