TaoZex commented on code in PR #3390:
URL: 
https://github.com/apache/incubator-seatunnel/pull/3390#discussion_r1020676585


##########
seatunnel-connectors-v2/connector-http/connector-http-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/http/config/HttpParameter.java:
##########
@@ -43,9 +43,10 @@ public void buildWithConfig(Config pluginConfig) {
         this.setUrl(pluginConfig.getString(HttpConfig.URL.key()));
         // set method
         if (pluginConfig.hasPath(HttpConfig.METHOD.key())) {
-            this.setMethod(pluginConfig.getString(HttpConfig.METHOD.key()));
+            Method method = 
Method.valueOf(pluginConfig.getString(HttpConfig.METHOD.key()).toUpperCase());
+            this.setMethod(method);
         } else {
-            this.setMethod(HttpConfig.METHOD_DEFAULT_VALUE);
+            this.setMethod(Method.GET);

Review Comment:
   Thanks. I have fixed it.



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