Changeset

3276:cb4b26221cf6

mod_atom: Set the proper Content-Type header for Atom (thanks MattJ)
author Kim Alvefur <zash@zash.se>
date Fri, 24 Aug 2018 23:59:54 +0200
parents 3275:25b4cad8fee4
children 3277:78b11fb291a2
files mod_atom/mod_atom.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_atom/mod_atom.lua	Fri Aug 24 22:52:13 2018 +0200
+++ b/mod_atom/mod_atom.lua	Fri Aug 24 23:59:54 2018 +0200
@@ -36,6 +36,7 @@
 				for i = #items, 1, -1 do
 					feed:add_direct_child(items[items[i]].tags[1]);
 				end
+				event.response.headers.content_type = "application/atom+xml";
 				return tostring(feed);
 			elseif items == "forbidden" then
 				return 403;