xjlgod commented on code in PR #7451:
URL: https://github.com/apache/incubator-seata/pull/7451#discussion_r2157085517


##########
core/src/main/java/org/apache/seata/core/rpc/netty/http/HttpDispatchHandler.java:
##########
@@ -82,13 +56,13 @@ protected void channelRead0(ChannelHandlerContext ctx, 
HttpRequest httpRequest)
             HttpInvocation httpInvocation = 
ControllerManager.getHttpInvocation(path);
 
             if (httpInvocation == null) {
-                sendErrorResponse(ctx, HttpResponseStatus.NOT_FOUND, 
keepAlive);
+                sendErrorResponse(ctx, HttpResponseStatus.NOT_FOUND, false);
                 return;
             }
 
-            HttpContext httpContext = new HttpContext(httpRequest, ctx, 
keepAlive);
+            HttpContext<HttpRequest> httpContext = new 
HttpContext<>(httpRequest, ctx, keepAlive,HttpContext.HTTP_1_1);
             ObjectNode requestDataNode = OBJECT_MAPPER.createObjectNode();
-            requestDataNode.putIfAbsent("param", 
ParameterParser.convertParamMap(queryStringDecoder.parameters()));
+            requestDataNode.put("param", 
ParameterParser.convertParamMap(queryStringDecoder.parameters()));

Review Comment:
   The origin method in here is putIfAbsent



-- 
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: notifications-unsubscr...@seata.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to