0

fix: "убрал" ошибку прокси

This commit is contained in:
2017-01-04 23:21:37 +03:00
parent b098dbd976
commit c70ab14fbd

View File

@@ -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();
}