mod_rest/mod_rest.lua
changeset 3819 1a0a612d36bc
parent 3818 0dede5b0ab27
child 3820 8473fd2d09c1
--- a/mod_rest/mod_rest.lua	Wed Jan 01 16:35:55 2020 +0100
+++ b/mod_rest/mod_rest.lua	Wed Jan 01 16:37:18 2020 +0100
@@ -45,9 +45,6 @@
 local function decide_type(accept)
 	-- assumes the accept header is sorted
 	local ret = supported_types[1];
-	if not accept then
-		return ret;
-	end
 	for i = 2, #supported_types do
 		if (accept:find(supported_types[i], 1, true) or 1000) < (accept:find(ret, 1, true) or 1000) then
 			ret = supported_types[i];