support js URL rewriting; support post req

This commit is contained in:
Kevin Pham
2023-11-21 10:45:29 -06:00
parent 79a229f28c
commit 543192afbe
3 changed files with 60 additions and 18 deletions

View File

@@ -87,7 +87,7 @@ func main() {
app := fiber.New(
fiber.Config{
Prefork: *prefork,
GETOnly: true,
GETOnly: false,
},
)
@@ -138,5 +138,6 @@ func main() {
}
app.Get("/*", handlers.NewProxySiteHandler(proxyOpts))
app.Post("/*", handlers.NewProxySiteHandler(proxyOpts))
log.Fatal(app.Listen(":" + *port))
}