Dont send X-Accept-Encoding when not proxied

This commit is contained in:
zzz
2009-07-02 19:09:36 +00:00
parent 1724e5b499
commit 714fe82d2f

View File

@ -922,7 +922,8 @@ public class EepGet {
buf.append("-\r\n");
}
buf.append("Accept-Encoding: \r\n");
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");
if (_shouldProxy)
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");
if (!_allowCaching) {
buf.append("Cache-control: no-cache\r\n");
buf.append("Pragma: no-cache\r\n");