blob: 17693af12fa54252722cb98827f361ee4093a172 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<% local viewtable, viewlibrary, pageinfo, session = ... %>
Status: 200 OK
Content-Type: <% print(viewtable.option or "application/octet-stream") %>
<% if viewtable.length then %>
Content-Length: <%= viewtable.length %>
<% io.write("\n") %>
<% end %>
<% if viewtable.label ~= "" then %>
Content-Disposition: attachment; filename="<%= viewtable.label %>"
<% end %>
<% io.write("\n") %>
<% pageinfo.viewfunc(viewtable, viewlibrary, pageinfo, session) %>
|