Yury Molchan created CXF-7734:
---------------------------------
Summary: 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
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:
* 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
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)