yhs0092 commented on code in PR #4875:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/4875#discussion_r2264628894


##########
common/common-rest/src/main/java/org/apache/servicecomb/common/rest/definition/RestOperationMeta.java:
##########
@@ -157,6 +167,10 @@ private boolean checkDownloadFileFlag() {
     return false;
   }
 
+  private boolean checkServerSendEvents() {
+    return !CollectionUtils.isEmpty(produces) && 
produces.contains(EVENTS_MEDIA_TYPE);

Review Comment:
   MIME type 取值为 `text/event-stream;charset=utf-8` 也是合法的. 同样是这个类里的 
`doCreateProduceProcessors` 方法在处理 `produces` 属性值的时候就考虑到了 MIME type 带分号的情况. 
这里建议也优化一下实现细节.



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