[ 
https://issues.apache.org/jira/browse/SCB-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16704197#comment-16704197
 ] 

ASF GitHub Bot commented on SCB-1054:
-------------------------------------

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

 ##########
 File path: 
common/common-rest/src/main/java/org/apache/servicecomb/common/rest/definition/RestOperationMeta.java
 ##########
 @@ -217,9 +232,14 @@ public ProduceProcessor ensureFindProduceProcessor(String 
acceptType) {
     if (StringUtils.isEmpty(acceptType)) {
       return defaultProcessor;
     }
-
-    List<String> mimeTyps = 
MimeTypesUtils.getSortedAcceptableMimeTypes(acceptType.toLowerCase(Locale.US));
-    for (String mime : mimeTyps) {
+    if (downloadFile) {
 
 Review comment:
   Is it better to add it before StringUtils.isEmpty(acceptType)?

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

Reply via email to