Changeset

11820:0375ef78ed64

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.
author Kim Alvefur <zash@zash.se>
date Fri, 24 Sep 2021 18:39:28 +0200
parents 11819:f590e3c51eff
children 11821:a9ad287c3388
files plugins/mod_http_errors.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_http_errors.lua	Thu Sep 23 17:55:49 2021 +0200
+++ b/plugins/mod_http_errors.lua	Fri Sep 24 18:39:28 2021 +0200
@@ -83,7 +83,7 @@
 		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">