aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-09-24 18:39:28 +0200
committerKim Alvefur <zash@zash.se>2021-09-24 18:39:28 +0200
commit39cb7aabe06ba85b83f3fc28a727a53b4c69d375 (patch)
treee64eb9f7cf192ea14912c5432c799d51a971386e
parent86c40a3873e9275fed054819c03a1ab2d1cc2050 (diff)
downloadprosody-39cb7aabe06ba85b83f3fc28a727a53b4c69d375.tar.gz
prosody-39cb7aabe06ba85b83f3fc28a727a53b4c69d375.zip
mod_http_errors: Make it easier to override 'http-message' handler
Per the unspoken internal standard of -1 as priority for most built-in event handlers, since this makes it easy for 3rd party plugins to override behavior by hooking at the default priority of 0.
-rw-r--r--plugins/mod_http_errors.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_http_errors.lua b/plugins/mod_http_errors.lua
index 8b1db4b7..ec54860c 100644
--- a/plugins/mod_http_errors.lua
+++ b/plugins/mod_http_errors.lua
@@ -83,7 +83,7 @@ module:hook("http-message", function (event)
event.response.headers.content_type = "text/html; charset=utf-8";
end
return render(html, event);
-end);
+end, -1);
local icon = [[
<svg xmlns="http://www.w3.org/2000/svg" height="0.7em" viewBox="0 0 480 480" width="0.7em">