swagger-ui
swagger-ui copied to clipboard
return "Unknow response type" when response is gzip Encoding
version: 3.3.2 issue: Return 200 status, but can not analysis response content. return "Unknown response type".
swagger.json:

Chrome debug:


swagger ui return:

Could anyone help me?
Your server is returning content without setting the content-type. That's a bad server. Teach it a lesson!
Hi @webron , thank you very much! You are right, it works when add content-type into headers of server response.