From 39cb7aabe06ba85b83f3fc28a727a53b4c69d375 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 24 Sep 2021 18:39:28 +0200 Subject: 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. --- plugins/mod_http_errors.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = [[ -- cgit v1.2.3