Commit 24084e2
committed
fix: serve JSON and text downloads inline so they open in the browser
download_project_file() forced every input and output file download
with as_attachment=True, so JSON results always downloaded as a
separate file instead of opening in the browser. Serve .json and
.txt files inline with their content type; other formats keep
forcing a download. HTML is deliberately not served inline since
generated attribution documents may embed third-party package data.
Closes #2210
Signed-off-by: Manoj Gowda <manojgowdabs18@gmail.com>1 parent 4186863 commit 24084e2
2 files changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
389 | 401 | | |
390 | 402 | | |
391 | 403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1532 | 1532 | | |
1533 | 1533 | | |
1534 | 1534 | | |
1535 | | - | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
1536 | 1540 | | |
1537 | 1541 | | |
1538 | 1542 | | |
| |||
0 commit comments