✏ fix example

pull/951/head
Fenny 2020-10-22 12:09:40 +02:00
parent 773968abf0
commit 4e895a0f61
1 changed files with 1 additions and 1 deletions

View File

@ -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 {