Skip to content

Commit 0fe36f0

Browse files
committed
update DownloadFile.
1 parent aa0f3a8 commit 0fe36f0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/com/qiniu/process/other/DownloadFile.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@ private void set(Configuration configuration, String protocol, String domain, St
6868
headers = new StringMap().put("Host", host);
6969
}
7070
if (range != null && range.length > 0) {
71-
if (headers == null)
72-
headers = new StringMap();
73-
headers.put("Range",
74-
new StringBuilder("bytes=").append(range[0]).append("-").append(range.length > 1 ? range[1] : ""));
71+
if (headers == null) headers = new StringMap();
72+
headers.put("Range", new StringBuilder("bytes=").append(range[0]).append("-").append(range.length > 1 ? range[1] : ""));
7573
}
7674
this.suffixOrQuery = suffixOrQuery == null ? "" : suffixOrQuery;
7775
this.addPrefix = addPrefix == null ? "" : addPrefix;

0 commit comments

Comments
 (0)