Changeset f71dfe50


Ignore:
Timestamp:
Mar 9, 2011 5:57:48 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
b6a0426
Parents:
6b6aaab8
Message:
  • eepget: Don't set X-Accept-Encoding header (ticket #422)
Location:
core/java/src/net/i2p/util
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/util/EepGet.java

    r6b6aaab8 rf71dfe50  
    953953            buf.append("-\r\n");
    954954        }
    955         if (_shouldProxy)
    956             buf.append("X-Accept-Encoding: x-i2p-gzip;q=1.0, identity;q=0.5, deflate;q=0, gzip;q=0, *;q=0\r\n");
    957955        if (!_allowCaching) {
    958956            buf.append("Cache-control: no-cache\r\n" +
  • core/java/src/net/i2p/util/EepHead.java

    r6b6aaab8 rf71dfe50  
    203203        buf.append("Host: ").append(url.getHost()).append("\r\n");
    204204        buf.append("Accept-Encoding: \r\n");
    205         if (_shouldProxy)
    206             buf.append("X-Accept-Encoding: x-i2p-gzip;q=1.0, identity;q=0.5, deflate;q=0, gzip;q=0, *;q=0\r\n");
    207205        // This will be replaced if we are going through I2PTunnelHTTPClient
    208206        buf.append("User-Agent: " + USER_AGENT + "\r\n");
  • core/java/src/net/i2p/util/PartialEepGet.java

    r6b6aaab8 rf71dfe50  
    115115        buf.append("\r\n");
    116116
    117         if (_shouldProxy)
    118             buf.append("X-Accept-Encoding: x-i2p-gzip;q=1.0, identity;q=0.5, deflate;q=0, gzip;q=0, *;q=0\r\n");
    119117        buf.append("Cache-control: no-cache\r\n" +
    120118                   "Pragma: no-cache\r\n");
Note: See TracChangeset for help on using the changeset viewer.