EarthChen commented on code in PR #11859:
URL: https://github.com/apache/dubbo/pull/11859#discussion_r1149979468
##########
dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/TripleHeaderEnum.java:
##########
@@ -46,14 +46,20 @@ public enum TripleHeaderEnum {
TRI_HEADER_CONVERT("tri-header-convert"),
+ TRI_HEADER_EXCEPTION_CODE("tri-header-exception-code"),
+
;
static final Map<String, TripleHeaderEnum> enumMap = new HashMap<>();
static final Set<String> excludeAttachmentsSet = new HashSet<>();
static {
+ Set<String> needToDeliveryHeaders = needToDeliveryHeaders();
for (TripleHeaderEnum item : TripleHeaderEnum.values()) {
+ if (needToDeliveryHeaders.contains(item.getHeader())) {
Review Comment:
It's better not to make special judgments here.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]