fix: "убрал" ошибку прокси
This commit is contained in:
@@ -194,12 +194,16 @@ public class WebAppController {
|
||||
BufferedOutputStream proxyToClientBuf = new BufferedOutputStream(response.getOutputStream());
|
||||
|
||||
int oneByte;
|
||||
while ((oneByte = webToProxyBuf.read()) != -1) {
|
||||
proxyToClientBuf.write(oneByte);
|
||||
try {
|
||||
while ((oneByte = webToProxyBuf.read()) != -1) {
|
||||
proxyToClientBuf.write(oneByte);
|
||||
}
|
||||
proxyToClientBuf.flush();
|
||||
proxyToClientBuf.close();
|
||||
} catch (Exception ignore) {
|
||||
// ignore
|
||||
}
|
||||
|
||||
proxyToClientBuf.flush();
|
||||
proxyToClientBuf.close();
|
||||
webToProxyBuf.close();
|
||||
con.disconnect();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user