mirror of https://github.com/gofiber/fiber.git
✏ fix example
parent
773968abf0
commit
4e895a0f61
|
@ -57,7 +57,7 @@ app.Use(proxy.Balancer(proxy.Config{
|
|||
"http://localhost:3003",
|
||||
},
|
||||
ModifyRequest: func(c *fiber.Ctx) error {
|
||||
c.Set("X-Real-IP", c.IP())
|
||||
c.Request().Header.Add("X-Real-IP", c.IP())
|
||||
return nil
|
||||
},
|
||||
ModifyResponse: func(c *fiber.Ctx) error {
|
||||
|
|
Loading…
Reference in New Issue