We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6174d06 commit c53a2d3Copy full SHA for c53a2d3
1 file changed
src/main/java/io/github/jpmorganchase/fusion/api/request/PartFetcher.java
@@ -28,7 +28,6 @@
28
public class PartFetcher {
29
30
private static final String HEAD_PATH = "%s/operationType/download";
31
- private static final String HEAD_PATH_FOR_PART = "%s?downloadPartNumber=%d";
32
33
Client client;
34
FusionTokenProvider credentials;
@@ -123,7 +122,9 @@ private String getSinglePartPath(PartRequest pr) {
123
122
}
124
125
private String getMultiPartPath(PartRequest pr) {
126
- return String.format(HEAD_PATH_FOR_PART, getHeadPath(pr), pr.getPartNo());
+ String headPath = getHeadPath(pr);
+ String separator = headPath.contains("?") ? "&" : "?";
127
+ return headPath + separator + "downloadPartNumber=" + pr.getPartNo();
128
129
130
private String getHeadPath(PartRequest pr) {
0 commit comments