Changeset 7d6fe01


Ignore:
Timestamp:
Feb 19, 2016 2:37:02 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
4089466
Parents:
451cb25
Message:

i2ptunnel: Change Content-encoding to Content-Encoding
(thx orignal)

Location:
apps/i2ptunnel/java/src/net/i2p/i2ptunnel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/HTTPResponseOutputStream.java

    r451cb25 r7d6fe01  
    2727 * the client, trivially filtered to make sure "Connection: close"
    2828 * is always in the response.  Perhaps add transparent handling of the
    29  * Content-encoding: x-i2p-gzip, adjusting the headers to say Content-encoding: identity?
    30  * Content-encoding: gzip is trivial as well, but Transfer-encoding: chunked makes it
     29 * Content-Encoding: x-i2p-gzip, adjusting the headers to say Content-Encoding: identity?
     30 * Content-Encoding: gzip is trivial as well, but Transfer-Encoding: chunked makes it
    3131 * more work than is worthwhile at the moment.
    3232 *
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPServer.java

    r451cb25 r7d6fe01  
    3939 * headers sent from the client to the server, replacing the Host
    4040 * header with whatever this instance has been configured with, and
    41  * if the browser set Accept-encoding: x-i2p-gzip, gzip the http
    42  * message body and set Content-encoding: x-i2p-gzip.
     41 * if the browser set Accept-Encoding: x-i2p-gzip, gzip the http
     42 * message body and set Content-Encoding: x-i2p-gzip.
    4343 *
    4444 */
     
    482482            // instead of i2ptunnelrunner, use something that reads the HTTP
    483483            // request from the socket, modifies the headers, sends the request to the
    484             // server, reads the response headers, rewriting to include Content-encoding: x-i2p-gzip
     484            // server, reads the response headers, rewriting to include Content-Encoding: x-i2p-gzip
    485485            // if it was one of the Accept-Encoding: values, and gzip the payload       
    486486            boolean allowGZIP = true;
     
    751751            //    _log.info("Including x-i2p-gzip as the content encoding in the response");
    752752            if (shouldCompress())
    753                 out.write(DataHelper.getASCII("Content-encoding: x-i2p-gzip\r\n"));
     753                out.write(DataHelper.getASCII("Content-Encoding: x-i2p-gzip\r\n"));
    754754            super.finishHeaders();
    755755        }
Note: See TracChangeset for help on using the changeset viewer.