diff options
Diffstat (limited to 'template-silent.lsp')
-rw-r--r-- | template-silent.lsp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/template-silent.lsp b/template-silent.lsp new file mode 100644 index 0000000..45a8ad4 --- /dev/null +++ b/template-silent.lsp @@ -0,0 +1,9 @@ +<% local viewtable, viewlibrary, pageinfo, session = ... %> +Status: 204 No content +Content-Type: <% print(viewtable.option or "application/octet-stream") %> +<% if viewtable.length then %> +Content-Length: <%= viewtable.length %> +<% end %> +<% if viewtable.label ~= "" then %> +Content-Disposition: attachment; filename="<%= viewtable.label %>" +<% end %> |