Skip to content

Commit 0936778

Browse files
Merge pull request #68 from conductor-oss/694-fix-s3-upload-content-type
Fix S3 presigned URL upload 403 error by setting Content-Type header
2 parents 78a625a + 22a3525 commit 0936778

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

conductor-client/src/main/java/com/netflix/conductor/client/http/PayloadStorage.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public void upload(String uri, InputStream payload, long payloadSize) {
9393
connection = (HttpURLConnection) url.openConnection();
9494
connection.setDoOutput(true);
9595
connection.setRequestMethod("PUT");
96+
connection.setRequestProperty("Content-Type", "application/json");
9697

9798
try (BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(connection.getOutputStream())) {
9899
byte[] buffer = new byte[BUFFER_SIZE];

0 commit comments

Comments
 (0)