comparison mod_rest/mod_rest.lua @ 3925:7dec5d096bb8

mod_rest: Advertise "support" for text/plain
author Kim Alvefur <zash@zash.se>
date Fri, 28 Feb 2020 22:40:53 +0100
parents 88d0f7438f0e
children f77ae9685eb6
comparison
equal deleted inserted replaced
3924:88d0f7438f0e 3925:7dec5d096bb8
85 85
86 local supported_types = { 86 local supported_types = {
87 "application/xmpp+xml", 87 "application/xmpp+xml",
88 "application/json", 88 "application/json",
89 "application/x-www-form-urlencoded", 89 "application/x-www-form-urlencoded",
90 "text/plain",
90 }; 91 };
91 92
92 local function decide_type(accept) 93 local function decide_type(accept)
93 -- assumes the accept header is sorted 94 -- assumes the accept header is sorted
94 local ret = supported_types[1]; 95 local ret = supported_types[1];