🔨 Update build script

This commit is contained in:
2024-11-12 20:48:48 +08:00
parent c0fec10846
commit f7d82bc93a
3 changed files with 10 additions and 8 deletions

View File

@ -6,6 +6,7 @@ import (
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/proxy"
"github.com/spf13/viper"
"github.com/valyala/fasthttp"
"strings"
)
@ -34,6 +35,9 @@ func forwardService(c *fiber.Ctx) error {
c.Request().Header.Del(fiber.HeaderAuthorization)
}
return proxy.Do(c, url)
return proxy.Do(c, url, &fasthttp.Client{
NoDefaultUserAgentHeader: true,
DisablePathNormalizing: true,
StreamResponseBody: true,
})
}