Skip to content

Commit

Permalink
fix: Remove content-length header to resolve multipart/form-data requ…
Browse files Browse the repository at this point in the history
…est body mismatch issue
  • Loading branch information
liaokun committed Dec 19, 2024
1 parent 565dca2 commit 5bfab2f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public HttpSenderContent buildRequestContent(SenderParameters senderParameters)
// build headers
HttpHeaders httpHeaders = createRequestHeaders(senderParameters.getHeaders(),
senderParameters.getFormat());
httpHeaders.remove("content-length");

// build http entity
HttpEntity<?> httpEntity = null;
Expand Down

0 comments on commit 5bfab2f

Please sign in to comment.