I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 1be0695a authored by zzz's avatar zzz
Browse files

remove extra semicolon

parent 65480456
No related branches found
No related tags found
No related merge requests found
...@@ -65,10 +65,12 @@ class HTTPResponseOutputStream extends FilterOutputStream { ...@@ -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 { ...@@ -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 { ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment