mirror of https://github.com/gofiber/fiber.git
Fix typo in doc example
parent
26d3283303
commit
ef1b7d7448
|
@ -465,11 +465,11 @@ Contains the remote IP address of the request.
|
|||
|
||||
```go
|
||||
// Function signature
|
||||
c.Ip() string
|
||||
c.IP() string
|
||||
|
||||
// Example
|
||||
app.Get("/", func(c *fiber.Ctx) {
|
||||
c.Ip()
|
||||
c.IP()
|
||||
// => "127.0.0.1"
|
||||
})
|
||||
```
|
||||
|
@ -480,12 +480,12 @@ contains an array of IP addresses specified in the X-Forwarded-For request heade
|
|||
|
||||
```go
|
||||
// Function signature
|
||||
c.Ips() []string
|
||||
c.IPs() []string
|
||||
|
||||
// Example
|
||||
// X-Forwarded-For: proxy1, 127.0.0.1", proxy3
|
||||
app.Get("/", func(c *fiber.Ctx) {
|
||||
c.Ips()
|
||||
c.IPs()
|
||||
// => ["proxy1", "127.0.0.1", "proxy3"]
|
||||
})
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue