diff options
author | Ted Trask <ttrask01@yahoo.com> | 2010-08-18 14:02:10 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2010-08-18 14:02:10 +0000 |
commit | 18837ebe43c083ddb0c55fab3929a494767c0eb9 (patch) | |
tree | c1f68363daf4b6cf2bbf722cc1766492fac33274 /app | |
parent | 4892b9cbf61a21e6c1b5a50a96d93c7bc16c6e25 (diff) | |
download | acf-core-18837ebe43c083ddb0c55fab3929a494767c0eb9.tar.bz2 acf-core-18837ebe43c083ddb0c55fab3929a494767c0eb9.tar.xz |
Made stream content-length optional, because it broke overlay download.
Diffstat (limited to 'app')
-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 d97fd11..79c828e 100644 --- a/app/template-stream.lsp +++ b/app/template-stream.lsp @@ -1,7 +1,9 @@ <% local viewtable, viewlibrary, pageinfo, session = ... %> Status: 200 OK Content-Type: <% print(viewtable.option or "application/octet-stream") %> -Content-Length: <%= #viewtable.value %> +<% if viewtable.length then %> +Content-Length: <%= viewtable.length %> +<% end %> <% if viewtable.label ~= "" then %> Content-Disposition: attachment; filename="<%= viewtable.label %>" <% end %> |