chl-wxp opened a new pull request, #11281:
URL: https://github.com/apache/seatunnel/pull/11281

   ### Purpose
   
     Remove an incorrect `StringEntity#setContentEncoding` call in 
`HttpClientProvider`.
   
     The request body is already created with `ContentType.APPLICATION_JSON`, 
so the entity content type is set correctly. Setting content encoding with a 
`Content-Type: application/json` header is semantically wrong because content
     encoding should describe encodings such as gzip or deflate.
   
     ### Changes
   
     - Removed the incorrect entity content encoding assignment for JSON string 
request bodies.
     - Let `StringEntity(body, ContentType.APPLICATION_JSON)` handle the JSON 
content type.
   
     ### Impact
   
     This avoids sending misleading entity encoding metadata while preserving 
the existing JSON request body behavior.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to