wujimin commented on a change in pull request #1016: [SCB-1054]when download
file, we should ignore consumer acceptType
URL:
https://github.com/apache/servicecomb-java-chassis/pull/1016#discussion_r238161533
##########
File path:
common/common-rest/src/main/java/org/apache/servicecomb/common/rest/definition/RestOperationMeta.java
##########
@@ -105,6 +111,24 @@ public void init(OperationMeta operationMeta) {
setAbsolutePath(concatPath(swagger.getBasePath(),
operationMeta.getOperationPath()));
}
+ private void checkDownloadFile(Operation operation) {
Review comment:
1.change name to checkDownloadFileFlag
2.OperationMeta already collect ResponseMetas, just invoke
org.apache.servicecomb.swagger.invocation.response.ResponsesMeta#findResponseMeta,
and determined by
org.apache.servicecomb.swagger.invocation.response.ResponseMeta#javaType
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services