cncf / landscapeapp

🌄Upstream landscape generation application
https://landscapes.dev/
Apache License 2.0
255 stars 125 forks source link

"Download as CSV" results in .css file on disk #866

Open berndfo opened 1 year ago

berndfo commented 1 year ago

Current behavior

When clicking the "Download as CSV" link, the download (via Chrome) actual results in a file named ".css" (sic!). When trying to open it, an application for a Cascading Style Sheets is suggested. The content of the file actually is in CSV format, which is good.

Interesting response headers from the download request:

The browser ignores the supplied file name extension and renames it to ".css".

Expected behavior

Response carries content type header with value "text/csv". File actually downloads with a CSV extension, is easily opened by a CSV-handling application.

Looks like a one character fix.

AndreyKozlov1984 commented 1 year ago

Oops, thank you!

jmhbnz commented 1 year ago

/assign @jmhbnz

Thanks for reporting this @berndfo. I have raised the quick fix here #876