Remove compression from proxied request.

This commit is contained in:
2023-12-13 23:13:34 +00:00
parent d09940ebc4
commit cd9c650226
+1
View File
@@ -37,6 +37,7 @@ func proxyTheRequest(c *fiber.Ctx) error {
c.Request().Header.DisableNormalizing()
c.Request().Header.Add("X-Real-IP", c.IP())
c.Request().Header.Add(fiber.HeaderXForwardedFor, string(c.Request().Header.Peek("X-Forwarded-For")))
c.Request().Header.Del(fiber.HeaderAcceptEncoding)
proxy.WithClient(cfg.Client.FastProxyClient)