This commit is contained in:
1-6
2023-07-27 00:24:47 +08:00
parent 63365c1506
commit 615e543845
12 changed files with 204 additions and 244 deletions
+4 -2
View File
@@ -243,8 +243,10 @@ func initWeb() {
}
if (matched || c.Request.URL.Path == path) && (c.Request.Method == method || "ANY" == method) {
req.handled = true
function.Handle(&Faker{
Type: "http",
function.Handle(&CustomSender{
F: &Factory{
botplt: "http",
},
}, func(vm *goja.Runtime) {
vm.Set("res", res)
vm.Set("req", req)