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 (#364)

* fix: Remove content-length header to resolve multipart/form-data request body mismatch issue

* fix: Remove Content-Length header in AbstractHttpRequestBuilder

---------

Co-authored-by: liaokun <[email protected]>
  • Loading branch information
llkkk and liaokun authored Dec 19, 2024
1 parent 565dca2 commit f38b6a0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ protected HttpHeaders createRequestHeaders(Map<String, String> sourceHeaders, St
contentType = contentType(format);
}
httpHeaders.setContentType(contentType);
httpHeaders.remove(HttpHeaders.CONTENT_LENGTH);
return httpHeaders;
}

Expand Down

0 comments on commit f38b6a0

Please sign in to comment.