diff options
-rw-r--r-- | app/template-stream.lsp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/template-stream.lsp b/app/template-stream.lsp index 03afd7c..a89ff0f 100644 --- a/app/template-stream.lsp +++ b/app/template-stream.lsp @@ -1,6 +1,8 @@ <? local viewtable, viewlibrary, pageinfo, session = ... ?> Status: 200 OK -Content-Type: application/octet-stream +Content-Type: <? print(viewtable.option or "application/octet-stream") ?> +<? if viewtable.label then ?> Content-Disposition: attachment; filename="<?= viewtable.label ?>" +<? end ?> <?= viewtable.value ?> |