-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI file responses not downloading #1196
Comments
We are having a similar issue. In our case we want to download a .crt file. This is the response header:
Printing headers in swagger-ui.js, in the showStatus method shows: Do you have an estimate when this fix will be included? |
This was referenced May 1, 2015
Closed
This should be fixed now, please reopen if you have any issues. |
This is not yet fixed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of swagger-ui develop_2.0 branch commit d76a62c which included a fix for bug #374, there seems to be a bug preventing the
\\Download
block of code:Chrome's Developer Tools console shows
Uncaught TypeError: Cannot read property 'test' of undefined
in swagger-ui.js:21394 (above). The progress animation runs forever.The
Content-Disposition
in my response isattachment; filename=file.zip
and the response is a valid ZIP. The error suggestheaders[]
isn't being properly populated. The relevant parts of the Swagger Spec feeding the UI are (espresponses
):The text was updated successfully, but these errors were encountered: