EnergeticPulse commented on code in PR #9916:
URL: https://github.com/apache/seatunnel/pull/9916#discussion_r2463219483


##########
seatunnel-connectors-v2/connector-http/connector-http-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/http/client/HttpClientProvider.java:
##########
@@ -522,6 +515,18 @@ private void addBody(HttpEntityEnclosingRequestBase 
request, String body) {
         request.setEntity(entity);
     }
 
+    private static Map<String, Object> parseBodyToMap(String body) {
+        if (Strings.isNullOrEmpty(body)) {
+            return Collections.emptyMap();
+        }
+        try {
+            return JsonUtils.parseObject(body, new TypeReference<Map<String, 
Object>>() {});

Review Comment:
   I use the same structure as before for this body. In fact, it is rare to use 
the body of the HTTP interface to pass a list.



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