We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This PR, https://github.com/swagger-api/swagger-ui/pull/8579/files, caused a regression for payloads that are not application/octet-stream.
application/octet-stream
For example, given these Response Headers:
Content-Disposition: attachment; filename=users.csv; filename*=UTF-8''users.csv Content-Length: 6460682 Content-Type: text/csv
the type of content on this line is string, and therefore content.size === undefined.
content
string
content.size === undefined
The text was updated successfully, but these errors were encountered:
I can confirm, you're absolutely right! Thank you for catching this.
Sorry, something went wrong.
fix(response-body): show download button both for non-empty Blob and …
f803fa3
…string responses (#9343) Co-authored-by: Vladimír Gorej <vladimir.gorej@gmail.com> Refs #9298
Closed by #9343
char0n
Successfully merging a pull request may close this issue.
Q&A (please complete the following information)
Content & configuration
This PR, https://github.com/swagger-api/swagger-ui/pull/8579/files, caused a regression for payloads that are not
application/octet-stream
.For example, given these Response Headers:
the type of
content
on this line isstring
, and thereforecontent.size === undefined
.Screenshots
The text was updated successfully, but these errors were encountered: