[tor-commits] [doctor/master] Fix two silly bugs.
karsten at torproject.org
karsten at torproject.org
Thu Dec 8 12:33:57 UTC 2011
commit 19352583b36036713f4951ab829b60d7733888f8
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Thu Dec 8 13:33:40 2011 +0100
Fix two silly bugs.
---
src/org/torproject/doctor/Download.java | 1 +
src/org/torproject/doctor/Downloader.java | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/org/torproject/doctor/Download.java b/src/org/torproject/doctor/Download.java
index 1d53cd5..5c84277 100644
--- a/src/org/torproject/doctor/Download.java
+++ b/src/org/torproject/doctor/Download.java
@@ -37,6 +37,7 @@ public class Download {
public Download(String authority, String url, String responseString,
long requestStartMillis, long fetchTime) {
this.authority = authority;
+ this.url = url;
this.responseString = responseString;
this.requestStartMillis = requestStartMillis;
this.fetchTime = fetchTime;
diff --git a/src/org/torproject/doctor/Downloader.java b/src/org/torproject/doctor/Downloader.java
index db44b8b..a2e6db5 100755
--- a/src/org/torproject/doctor/Downloader.java
+++ b/src/org/torproject/doctor/Downloader.java
@@ -230,7 +230,7 @@ public class Downloader {
String fullUrl = "http://" + authority + resource;
Map<String, String> urls = new HashMap<String, String>();
urls.put(fullUrl, authority);
- this.downloadedVotes = this.downloadFromAuthority(urls);
+ this.downloadedVotes.addAll(this.downloadFromAuthority(urls));
}
}
}
More information about the tor-commits
mailing list