[ https://issues.apache.org/jira/browse/CXF-7734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Kieselhorst reassigned CXF-7734: --------------------------------------- Assignee: Dennis Kieselhorst > Swagger2Feature - application/octet-stream media type is returned for > index.html > -------------------------------------------------------------------------------- > > Key: CXF-7734 > URL: https://issues.apache.org/jira/browse/CXF-7734 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 3.1.15 > Reporter: Yury Molchan > Assignee: Dennis Kieselhorst > Priority: Major > Fix For: 3.1.16 > > > Reproduced after CXF-7581. > org.apache.cxf.jaxrs.swagger.Swagger2Feature.SwaggerUIService#getResource > does not set media type for the root resource ("" or "/" paths) > So, *application/octet-stream* type is set by default instead of *text/html* > Steps to reproduce (See [Swagger2Feature - Automatic UI > Activation|http://cxf.apache.org/docs/swaggerfeature-swagger2feature.html#SwaggerFeature/Swagger2Feature-AutomaticUIActivation]): > * Setup Swagger2Feature > * Open swagger-ui in a browser _$base_rest_url/api-docs?url=swagger.json_ > Actual: The file is downloading > Expected: The index.html page is displayed > Pull request: https://github.com/apache/cxf/pull/416 -- This message was sent by Atlassian JIRA (v7.6.3#76005)