Mercurial > prosody-modules
changeset 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 | 3c3d216c6f6d |
children | 7dec5d096bb8 |
files | mod_rest/mod_rest.lua |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
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