Commit graph

6922 commits

Author SHA1 Message Date
Anton Shestakov
1e07f4b755 fallbacks.bit: remove unused one-letter loop variables [luacheck] 2016-07-14 18:40:43 +08:00
Anton Shestakov
35b97a641c run_tests: use "$@" for passing arguments [shellcheck] 2016-07-14 17:23:57 +08:00
Kim Alvefur
59fd8e3707 Merge 0.9->0.10 2016-07-13 18:43:28 +02:00
Kim Alvefur
a8523999b6 tests: Add basic test for net.http.parser 2016-07-12 13:59:02 +02:00
Kim Alvefur
135071b736 mod_http_errors: Add a newline after end of HTML 2016-07-12 10:39:04 +02:00
Kim Alvefur
2d847c082f mod_http_files: Send larger files using new file handle API 2016-07-11 12:20:25 +02:00
Kim Alvefur
1d46e953aa mod_http_files: Switch to use util.cache for cache 2016-07-11 12:17:59 +02:00
Kim Alvefur
99ba4462fc net.http.server: Add response method for reading response body from a file handle 2016-07-11 11:52:43 +02:00
Anton Shestakov
b33e46e4ac mod_http_files: send valid ETag header
RFC 2616 section 14 (header field definitions) shows that ETag header content
should be wrapped in double quotes.
2016-07-09 21:55:37 +08:00
Anton Shestakov
1e78e0f236 util.ip: rename variable (i is already defined) [luacheck] 2016-07-09 17:33:38 +08:00
Anton Shestakov
b1cda68544 test_util_cache: rename a variable (c is already defined) [luacheck] 2016-07-09 17:30:56 +08:00
Anton Shestakov
7a73da002f test_util_cache: remove unused argument c3 [luacheck] 2016-07-09 17:30:23 +08:00
Anton Shestakov
7ebb2bd493 prosodyctl: remove unused one-letter loop variable [luacheck] 2016-07-09 13:52:57 +08:00
Anton Shestakov
f710b07b55 util.openssl: remove unused one-letter loop variable [luacheck] 2016-07-09 13:52:04 +08:00
Anton Shestakov
416f381c39 util.ip: remove unused one-letter loop variables [luacheck] 2016-07-09 10:27:57 +08:00
Anton Shestakov
8320418d38 net.dns: don't use "for s,s in pairs..." (unused loop variable s) [luacheck] 2016-07-09 10:26:18 +08:00
Anton Shestakov
a70183bcec luacheckrc: make module a global in plugins/ 2016-07-09 10:17:00 +08:00
Anton Shestakov
d095fb09d3 luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest 2016-07-09 10:08:35 +08:00
Kim Alvefur
9741bdfb38 luacheckrc: Ignore assert helper functions used in tests/* 2016-07-08 19:20:49 +02:00
Anton Shestakov
45af943ce3 net.adns: remove unused local variables t_insert and t_remove [luacheck] 2016-07-09 00:58:16 +08:00
Anton Shestakov
2a2ade5de5 mod_admin_telnet: remove unused import (util.serialization) [luacheck] 2016-07-09 00:57:17 +08:00
Anton Shestakov
f6a1c987ce test_util_jid: make function test() local [luacheck] 2016-07-09 00:56:32 +08:00
Anton Shestakov
1507e8b498 test_util_multitable: make mt variable local [luacheck] 2016-07-09 00:53:46 +08:00
Anton Shestakov
885648c042 mod_admin_telnet: rename variable to make it defined (room -> room_name) 2016-07-09 00:47:55 +08:00
Anton Shestakov
0ce8de81ab mod_presence: remove unused one-letter loop variable [luacheck] 2016-07-09 00:46:28 +08:00
Anton Shestakov
4da595c2cf net.dns: remove unused one-letter loop variables [luacheck] 2016-07-09 00:45:59 +08:00
Anton Shestakov
7a87176df8 net.server_select: remove unused one-letter loop variables [luacheck] 2016-07-09 00:37:34 +08:00
Kim Alvefur
ddccdcd00d mod_c2s, mod_s2s: Bootstrap connection count statistic on module load 2016-07-07 18:48:58 +02:00
Matthew Wild
22ce4d1825 net.http: Add log messages for requests, including their id (so "calling callback" and tracebacks can be traced back to their initial request) 2016-07-07 23:08:47 +01:00
Matthew Wild
fc9bcc9b20 net.http: Add request.id to every request object (can be overridden by providing ex.id) 2016-07-07 23:07:19 +01:00
Matthew Wild
6fc4ad3aef util.time: New tiny library to abstract LuaSocket's gettime() function, so we can use other sources in the future 2016-06-28 14:49:44 +01:00
Kim Alvefur
03e138c59a Merge 0.9->0.10 2016-06-24 15:11:06 +02:00
Kim Alvefur
621ba250ff util.openssl: Handle return value from os.execute being true in Lua 5.2 2016-06-23 21:08:51 +02:00
Kim Alvefur
f7c083c86a util.prosodyctl: Handle os.execute in Lua 5.2 returning true when command terminates successfully 2016-06-23 21:07:48 +02:00
Kim Alvefur
843d6bb629 mod_privacy: Fix selecting the top resource (fixes #694) 2016-06-22 22:22:29 +02:00
Kim Alvefur
41fc70c7cf prosodyctl: Warn if encryption is required but mod_tls is not enabled (see #617) 2016-06-12 19:55:46 +02:00
Kim Alvefur
331c8a1358 mod_pep: Use correct field for full JID (thanks Milan*) 2016-06-10 14:55:05 +02:00
Kim Alvefur
39de480ad8 mod_pep: Include the bare user jid in event 2016-06-09 10:30:33 +02:00
Kim Alvefur
9dc461298a mod_s2s: Remove compat with namespace issue from Prosody pre-0.6.2 2016-05-30 13:30:32 +02:00
Kim Alvefur
2d8b98ebaf core.stanza_router: Remove compatibility with Jabiru not including id attribute (originally added in 9b352c8a32e6) 2016-05-30 13:29:43 +02:00
Kim Alvefur
6b2c577b20 util.dataforms: Fix including default value for list-single when given as field.value[].default 2016-05-29 15:57:03 +02:00
Kim Alvefur
7f091c5a3b prosodyctl: Fix typo (thanks av6) 2016-05-28 13:10:40 +02:00
Kim Alvefur
b44930be7e MUC: Allow members (or above) in members-only non-anonymous rooms to see the member list (fixes #445) 2016-05-28 12:37:51 +02:00
Kim Alvefur
99a7a645f1 util.dataforms: Allow separation of options from values in list fields 2016-05-27 15:44:41 +02:00
Kim Alvefur
01a15bfbe2 util.pposix: Ask for shared file descriptor table using rfork() on *BSD (fixes #412) 2016-05-25 21:34:34 +02:00
Kim Alvefur
478e9b9327 util.crand: Silence compiler warning 2016-05-25 16:54:43 +02:00
Matthew Wild
59957bc13c util.cache: Add support for creating a proxy table to a cache, that looks and acts (mostly) like a normal table. No tests yet. 2016-05-22 18:18:23 +01:00
Kim Alvefur
288422c9c3 Merge 0.9->0.10 2016-05-22 14:39:14 +02:00
Kim Alvefur
baba98852d util.datamanager: Import tostring and type (fix global access) 2016-05-22 14:38:07 +02:00
Kim Alvefur
8d720b7bfb util.sql: Import type too (fix global access) 2016-05-22 14:37:52 +02:00