Skip to content

Commit 0114bf3

Browse files
authored
Merge pull request #37 from ConvertAPI/update-content-type
Set content-type
2 parents 1c20524 + a50afde commit 0114bf3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public static CompletableFuture<ConversionResult> convert(String fromFormat, Str
7171
Request request = Http.getRequestBuilder()
7272
.url(url)
7373
.addHeader("Accept", "application/json")
74+
.addHeader("Content-Type", "multipart/form-data")
7475
.post(multipartBuilder.build())
7576
.build();
7677

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ static CompletableFuture<Void> requestDelete(String url) {
6666
} catch (IOException e) {
6767
throw new RuntimeException(e);
6868
}
69+
return null;
6970
});
7071
}
7172

0 commit comments

Comments
 (0)