[
https://issues.apache.org/jira/browse/SCB-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16704344#comment-16704344
]
ASF GitHub Bot commented on SCB-1054:
-------------------------------------
heyile 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_r237764327
##########
File path:
common/common-rest/src/main/java/org/apache/servicecomb/common/rest/definition/RestOperationMeta.java
##########
@@ -105,6 +110,16 @@ public void init(OperationMeta operationMeta) {
setAbsolutePath(concatPath(swagger.getBasePath(),
operationMeta.getOperationPath()));
}
+ private void checkDownloadFile(Operation operation) {
+ try {
+ Response response = operation.getResponses().get("200");
+ downloadFile =
response.getSchema().getType().toLowerCase().equals("file");
+ } catch (Exception e) {
Review comment:
ok
----------------------------------------------------------------
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]
> when download file, we should ignore consumer acceptType
> --------------------------------------------------------
>
> Key: SCB-1054
> URL: https://issues.apache.org/jira/browse/SCB-1054
> Project: Apache ServiceComb
> Issue Type: Bug
> Reporter: 何一乐
> Assignee: 何一乐
> Priority: Critical
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)