diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/HTTPResponseOutputStream.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/HTTPResponseOutputStream.java index 2fc344a71465a1bfcdced5e24b3fe3012fcb5ec0..14b269807a067cf2578a9198adbec598c1eec865 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/HTTPResponseOutputStream.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/HTTPResponseOutputStream.java @@ -26,8 +26,8 @@ import net.i2p.util.Log; * Simple stream for delivering an HTTP response to * the client, trivially filtered to make sure "Connection: close" * is always in the response. Perhaps add transparent handling of the - * Content-encoding: x-i2p-gzip, adjusting the headers to say Content-encoding: identity? - * Content-encoding: gzip is trivial as well, but Transfer-encoding: chunked makes it + * Content-Encoding: x-i2p-gzip, adjusting the headers to say Content-Encoding: identity? + * Content-Encoding: gzip is trivial as well, but Transfer-Encoding: chunked makes it * more work than is worthwhile at the moment. * */ diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPServer.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPServer.java index acb1c532b43cad73c2290a18265402073baf1e5e..24f0a93974b6ed01dc4eac7ff399edf72486bbc2 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPServer.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPServer.java @@ -38,8 +38,8 @@ import net.i2p.util.Log; * Simple extension to the I2PTunnelServer that filters the HTTP * headers sent from the client to the server, replacing the Host * header with whatever this instance has been configured with, and - * if the browser set Accept-encoding: x-i2p-gzip, gzip the http - * message body and set Content-encoding: x-i2p-gzip. + * if the browser set Accept-Encoding: x-i2p-gzip, gzip the http + * message body and set Content-Encoding: x-i2p-gzip. * */ public class I2PTunnelHTTPServer extends I2PTunnelServer { @@ -481,7 +481,7 @@ public class I2PTunnelHTTPServer extends I2PTunnelServer { long afterSocket = getTunnel().getContext().clock().now(); // instead of i2ptunnelrunner, use something that reads the HTTP // request from the socket, modifies the headers, sends the request to the - // server, reads the response headers, rewriting to include Content-encoding: x-i2p-gzip + // server, reads the response headers, rewriting to include Content-Encoding: x-i2p-gzip // if it was one of the Accept-Encoding: values, and gzip the payload boolean allowGZIP = true; String val = opts.getProperty("i2ptunnel.gzip"); @@ -750,7 +750,7 @@ public class I2PTunnelHTTPServer extends I2PTunnelServer { //if (_log.shouldLog(Log.INFO)) // _log.info("Including x-i2p-gzip as the content encoding in the response"); if (shouldCompress()) - out.write(DataHelper.getASCII("Content-encoding: x-i2p-gzip\r\n")); + out.write(DataHelper.getASCII("Content-Encoding: x-i2p-gzip\r\n")); super.finishHeaders(); }