forked from I2P_Developers/i2p.i2p
remove extra semicolon
This commit is contained in:
@ -65,10 +65,12 @@ class HTTPResponseOutputStream extends FilterOutputStream {
|
|||||||
_buf1[0] = (byte)c;
|
_buf1[0] = (byte)c;
|
||||||
write(_buf1, 0, 1);
|
write(_buf1, 0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void write(byte buf[]) throws IOException {
|
public void write(byte buf[]) throws IOException {
|
||||||
write(buf, 0, buf.length);
|
write(buf, 0, buf.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void write(byte buf[], int off, int len) throws IOException {
|
public void write(byte buf[], int off, int len) throws IOException {
|
||||||
if (_headerWritten) {
|
if (_headerWritten) {
|
||||||
@ -181,6 +183,7 @@ class HTTPResponseOutputStream extends FilterOutputStream {
|
|||||||
_gzip = true;
|
_gzip = true;
|
||||||
} else if ("proxy-authenticate".equals(lcKey)) {
|
} else if ("proxy-authenticate".equals(lcKey)) {
|
||||||
// filter this hop-by-hop header; outproxy authentication must be configured in I2PTunnelHTTPClient
|
// filter this hop-by-hop header; outproxy authentication must be configured in I2PTunnelHTTPClient
|
||||||
|
// see e.g. http://blog.c22.cc/2013/03/11/privoxy-proxy-authentication-credential-exposure-cve-2013-2503/
|
||||||
} else {
|
} else {
|
||||||
if ("content-length".equals(lcKey)) {
|
if ("content-length".equals(lcKey)) {
|
||||||
// save for compress decision on server side
|
// save for compress decision on server side
|
||||||
@ -272,7 +275,7 @@ class HTTPResponseOutputStream extends FilterOutputStream {
|
|||||||
while ( (read = _in.read(buf)) != -1) {
|
while ( (read = _in.read(buf)) != -1) {
|
||||||
if (_log.shouldLog(Log.DEBUG))
|
if (_log.shouldLog(Log.DEBUG))
|
||||||
_log.debug("Read " + read + " and writing it to the browser/streams");
|
_log.debug("Read " + read + " and writing it to the browser/streams");
|
||||||
; _out.write(buf, 0, read);
|
_out.write(buf, 0, read);
|
||||||
_out.flush();
|
_out.flush();
|
||||||
written += read;
|
written += read;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user