fix: http协议客户端对请求头的处理和服务端解析不一致 by sppan24 · Pull Request #132 · trpc-group/trpc-java

@sppan24

http协议客户端发起请求的时候,没有按照"tRPC请求报文头映射"的约定设置请求头,导致客户端发起请求后,服务端或者其他语言的服务端无法从请求头获取到必要的数据(例如框架透传信息等)。

@sppan24

@codecov

wardseptember

}
});
if (!transInfoMap.isEmpty()) {
simpleHttpRequest.setHeader(HTTP_HEADER_TRPC_TRANS_INFO, JsonUtils.toJson(transInfoMap));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里改了之后跟目前不兼容了,担心出问题

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我个人觉得可以在新版本修复,不然不要说其他语言了,就tRPC-Java自己的客户端和服务端传递都有问题。