diff src/luan/modules/http/Http.luan @ 1618:a37ffe2d1b14

fix not_found_handler
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 14 Jun 2021 18:45:17 -0600
parents fa066aaa068c
children 224af797b1f9
line wrap: on
line diff
--- a/src/luan/modules/http/Http.luan	Sun Jun 13 23:39:09 2021 -0600
+++ b/src/luan/modules/http/Http.luan	Mon Jun 14 18:45:17 2021 -0600
@@ -38,7 +38,7 @@
 local Http = {}
 local mt = {}
 function mt.__index(tbl,key)
-	if key=="error_priority" then
+	if key=="error_priority" or key=="not_found_handler" then
 		return get_local_cloned(tbl,key)
 	elseif key=="request" or key=="response" then
 		return get_local_only(tbl,key)
@@ -47,7 +47,7 @@
 	end
 end
 function mt.__new_index(tbl,key,value)
-	if key=="error_priority" then
+	if key=="error_priority" or key=="not_found_handler" then
 		set_local_cloned(tbl,key,value)
 	elseif key=="request" or key=="response" then
 		set_local_only(tbl,key,value)