Changeset 852 for java/HTTPFileDownloader/src
- Timestamp:
- May 3, 2013, 2:25:21 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/HTTPFileDownloader/src/net/oni2/httpfiledownloader/FileDownloader.java
r786 r852 9 9 import java.net.URLConnection; 10 10 import java.util.HashSet; 11 12 import net.oni2.ProxySettings; 11 13 12 14 /** … … 147 149 String strEtag = null; 148 150 RandomAccessFile outFile = null; 151 149 152 try { 150 153 outFile = new RandomAccessFile(target, "rw"); … … 174 177 BufferedInputStream input = null; 175 178 try { 176 URLConnection connection = url.openConnection(); 177 connection.setRequestProperty("Cache-Control", "no-cache"); 179 URLConnection connection = url 180 .openConnection(ProxySettings.getInstance() 181 .getProxy()); 182 connection.setRequestProperty("Cache-Control", 183 "no-cache"); 178 184 if (downloaded == 0) { 179 185 connection.connect();
Note:
See TracChangeset
for help on using the changeset viewer.