From 7d6fe011dbfd7aca7ced49e06bb6f5bc13014b56 Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Fri, 19 Feb 2016 14:37:02 +0000
Subject: [PATCH] i2ptunnel: Change Content-encoding to Content-Encoding (thx
 orignal)

---
 .../src/net/i2p/i2ptunnel/HTTPResponseOutputStream.java   | 4 ++--
 .../java/src/net/i2p/i2ptunnel/I2PTunnelHTTPServer.java   | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/HTTPResponseOutputStream.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/HTTPResponseOutputStream.java
index 2fc344a714..14b269807a 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 acb1c532b4..24f0a93974 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();
         }
 
-- 
GitLab