commit 7fe22d2bbbba84a5f59bbf496858832b2fe761b1 Author: Karsten Loesing karsten.loesing@gmx.net Date: Sun Apr 3 13:05:54 2011 +0200
Disable compression when downloading extra-info descriptors. --- .../ernie/db/RelayDescriptorDownloader.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/org/torproject/ernie/db/RelayDescriptorDownloader.java b/src/org/torproject/ernie/db/RelayDescriptorDownloader.java index ebbf761..190d1ae 100644 --- a/src/org/torproject/ernie/db/RelayDescriptorDownloader.java +++ b/src/org/torproject/ernie/db/RelayDescriptorDownloader.java @@ -623,7 +623,8 @@ public class RelayDescriptorDownloader { huc.connect(); int response = huc.getResponseCode(); if (response == 200) { - BufferedInputStream in = downloadCompressed + BufferedInputStream in = this.downloadCompressed && + !resource.startsWith("/tor/extra/") ? new BufferedInputStream(new InflaterInputStream( huc.getInputStream())) : new BufferedInputStream(huc.getInputStream());
tor-commits@lists.torproject.org