swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

return "Unknow response type" when response is gzip Encoding

Open huduan-D opened this issue 9 years ago • 2 comments

version: 3.3.2 issue: Return 200 status, but can not analysis response content. return "Unknown response type".

swagger.json: default

Chrome debug: default

default default

swagger ui return: default

Could anyone help me?

huduan-D avatar Oct 16 '17 12:10 huduan-D

Your server is returning content without setting the content-type. That's a bad server. Teach it a lesson!

webron avatar Oct 16 '17 20:10 webron

Hi @webron , thank you very much! You are right, it works when add content-type into headers of server response.

huduan-D avatar Oct 17 '17 02:10 huduan-D