hxgdada opened a new issue, #7821:
URL: https://github.com/apache/iceberg/issues/7821

   ### Apache Iceberg version
   
   None
   
   ### Query engine
   
   None
   
   ### Please describe the bug 🐞
   
   org.apache.iceberg.rest.HTTPClient
   
   origin:
       private StringEntity toJson(Object requestBody) {
           try {
               return new StringEntity(mapper.writeValueAsString(requestBody));
           } catch (JsonProcessingException e) {
               throw new RESTException(e, "Failed to write request body: %s", 
requestBody);
           }
       }
   
   After modification:
     private StringEntity toJson(Object requestBody) {
           try {
               return new StringEntity(mapper.writeValueAsString(requestBody), 
Charset.forName("UTF-8"));
           } catch (JsonProcessingException e) {
               throw new RESTException(e, "Failed to write request body: %s", 
requestBody);
           }
       }
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to