Copilot commented on code in PR #9504:
URL: https://github.com/apache/seatunnel/pull/9504#discussion_r2174326955


##########
seatunnel-connectors-v2/connector-http/connector-http-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/http/source/HttpSourceReader.java:
##########
@@ -73,6 +73,7 @@ public class HttpSourceReader extends 
AbstractSingleSplitReader<SeaTunnelRow> {
             Configuration.defaultConfiguration().addOptions(DEFAULT_OPTIONS);
     private boolean noMoreElementFlag = true;
     private Optional<PageInfo> pageInfoOptional = Optional.empty();
+    private String rawBody = null;
 
     public HttpSourceReader(

Review Comment:
   `rawBody` should be initialized in the constructor from 
`httpParameter.getBody()` so that `updateRequestParam` works correctly even if 
called before `internalPollNext`. Consider adding `this.rawBody = 
httpParameter.getBody();` in the constructor.



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