diff mod_rest/mod_rest.lua @ 3924:88d0f7438f0e

mod_rest: Spred array over multiple lines for nicer future diffs
author Kim Alvefur <zash@zash.se>
date Fri, 28 Feb 2020 22:39:42 +0100
parents 80dffbbd056b
children 7dec5d096bb8
line wrap: on
line diff
--- a/mod_rest/mod_rest.lua	Fri Feb 28 22:38:41 2020 +0100
+++ b/mod_rest/mod_rest.lua	Fri Feb 28 22:39:42 2020 +0100
@@ -83,7 +83,11 @@
 	return nil, "unknown-payload-type";
 end
 
-local supported_types = { "application/xmpp+xml", "application/json", "application/x-www-form-urlencoded" };
+local supported_types = {
+	"application/xmpp+xml",
+	"application/json",
+	"application/x-www-form-urlencoded",
+};
 
 local function decide_type(accept)
 	-- assumes the accept header is sorted