Skip to content

Commit c0974bd

Browse files
authored
Merge pull request #20 from ConvertAPI/develop
Change converter parameter comparison to case sensitive
2 parents 06611b1 + 919069e commit c0974bd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/convertapi/client/ConvertApi.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,14 @@ public static CompletableFuture<ConversionResult> convert(String fromFormat, Str
4040
.addPathSegment(toFormat);
4141

4242
for (Param param : params) {
43-
if (param.getName().equals("converter")) {
43+
if (param.getName().toLowerCase().equals("converter")) {
4444
try {
4545
urlBuilder = urlBuilder
4646
.addPathSegment("converter")
4747
.addPathSegment(param.getValue().get(0));
4848
} catch (InterruptedException | ExecutionException e) {
4949
throw new RuntimeException(e);
5050
}
51-
5251
}
5352
}
5453

0 commit comments

Comments
 (0)