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