comparison mod_pastebin/mod_pastebin.lua @ 3140:11087a72990b

mod_pastebin: Remove reference to removed header table
author Kim Alvefur <zash@zash.se>
date Sat, 23 Jun 2018 16:40:46 +0200
parents 03cda95ae97a
children 01503000d2f1
comparison
equal deleted inserted replaced
3139:03cda95ae97a 3140:11087a72990b
55 local xmlns_xhtmlim = "http://jabber.org/protocol/xhtml-im"; 55 local xmlns_xhtmlim = "http://jabber.org/protocol/xhtml-im";
56 local xmlns_xhtml = "http://www.w3.org/1999/xhtml"; 56 local xmlns_xhtml = "http://www.w3.org/1999/xhtml";
57 57
58 function pastebin_text(text) 58 function pastebin_text(text)
59 local uuid = uuid_new(); 59 local uuid = uuid_new();
60 pastes[uuid] = { body = text, time = os_time(), headers = default_headers }; 60 pastes[uuid] = { body = text, time = os_time(), };
61 pastes[#pastes+1] = uuid; 61 pastes[#pastes+1] = uuid;
62 if not pastes[2] then -- No other pastes, give the timer a kick 62 if not pastes[2] then -- No other pastes, give the timer a kick
63 add_task(expire_after, expire_pastes); 63 add_task(expire_after, expire_pastes);
64 end 64 end
65 return base_url..uuid; 65 return base_url..uuid;