Comparison

plugins/mod_http_file_share.lua @ 11345:0fec04b64a49

mod_http_file_share: Add missing semicolon Last comma or semicolon isn't required but makes the diffs nicer once you add another item after it.
author Kim Alvefur <zash@zash.se>
date Sun, 31 Jan 2021 14:41:56 +0100
parent 11343:f125ac529c22
child 11346:315faec1a920
comparison
equal deleted inserted replaced
11344:f06afb410a9f 11345:0fec04b64a49
52 filename = { type = "modify"; condition = "bad-request"; text = "Invalid filename" }; 52 filename = { type = "modify"; condition = "bad-request"; text = "Invalid filename" };
53 filetype = { type = "modify"; condition = "not-acceptable"; text = "File type not allowed" }; 53 filetype = { type = "modify"; condition = "not-acceptable"; text = "File type not allowed" };
54 filesize = { type = "modify"; condition = "not-acceptable"; text = "File too large"; 54 filesize = { type = "modify"; condition = "not-acceptable"; text = "File too large";
55 extra = {tag = st.stanza("file-too-large", {xmlns = namespace}):tag("max-file-size"):text(tostring(file_size_limit)) }; 55 extra = {tag = st.stanza("file-too-large", {xmlns = namespace}):tag("max-file-size"):text(tostring(file_size_limit)) };
56 }; 56 };
57 filesizefmt = { type = "modify"; condition = "bad-request"; text = "File size must be positive integer"; } 57 filesizefmt = { type = "modify"; condition = "bad-request"; text = "File size must be positive integer"; };
58 }); 58 });
59 59
60 local upload_cache = cache.new(1024); 60 local upload_cache = cache.new(1024);
61 61
62 -- Convenience wrapper for logging file sizes 62 -- Convenience wrapper for logging file sizes