Skip to content

Commit 99116fb

Browse files
authored
http: fixed resolving download filename (#631)
1 parent 38d338f commit 99116fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/me/itzg/helpers/http/SpecificFileFetchBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public Mono<Path> assemble() {
6464

6565
final boolean useIfModifiedSince = skipUpToDate && Files.exists(file);
6666

67-
final Path tempDownloadFile = file.getParent().resolve(file.getFileName() + ".download");
67+
final Path tempDownloadFile = file.resolveSibling(file.getFileName() + ".download");
6868
return useReactiveClient(client ->
6969
client
7070
.doOnRequest((httpClientRequest, connection) ->

0 commit comments

Comments
 (0)