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