Software /
code /
prosody-modules
Comparison
mod_stanza_counter/mod_stanza_counter.lua @ 433:967757965dbd
mod_stanza_counter: tidbits, line break escapes.
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Tue, 20 Sep 2011 21:21:06 +0000 |
parent | 432:23a6289a00bd |
child | 434:ac4a6cc5776c |
comparison
equal
deleted
inserted
replaced
432:23a6289a00bd | 433:967757965dbd |
---|---|
25 <strong>Outgoing Messages</strong>: %d<br/>\n | 25 <strong>Outgoing Messages</strong>: %d<br/>\n |
26 <strong>Incoming Presences</strong>: %d<br/>\n | 26 <strong>Incoming Presences</strong>: %d<br/>\n |
27 <strong>Outgoing Presences</strong>: %d<p>\n | 27 <strong>Outgoing Presences</strong>: %d<p>\n |
28 </body>\n | 28 </body>\n |
29 \n | 29 \n |
30 </html>" | 30 </html>\n" |
31 | 31 |
32 local r_405 = "\n | 32 local r_405 = "\n |
33 <html>\n | 33 <html>\n |
34 <head>\n | 34 <head>\n |
35 <title>Prosody's Stanza Counter - Error</title>\n | 35 <title>Prosody's Stanza Counter - Error</title>\n |
37 </head>\n | 37 </head>\n |
38 \n | 38 \n |
39 <body>\n | 39 <body>\n |
40 <h3>Bad Method ... I only support GET.</h3>\n | 40 <h3>Bad Method ... I only support GET.</h3>\n |
41 </body>\n | 41 </body>\n |
42 \n" | 42 \n |
43 </html>\n" | |
43 | 44 |
44 local function res(code, r, h) | 45 local function res(code, r, h) |
45 local response = { | 46 local response = { |
46 status = code; | 47 status = code; |
47 body = r; | 48 body = r; |