Skip to content

Commit

Permalink
fix: Remove Content-Length header in AbstractHttpRequestBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
liaokun committed Dec 19, 2024
1 parent 5bfab2f commit aa88167
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
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
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ 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 aa88167

Please sign in to comment.