Skip to content

Commit

Permalink
docs: fix HeaderRegexp example (#3222)
Browse files Browse the repository at this point in the history
From https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For

> Elements are comma-separated, with optional whitespace surrounding the commas.
> If a request goes through multiple proxies, the IP addresses of each successive proxy is listed.
> This means that, given well-behaved client and proxies, the rightmost IP address is the IP address
> of the most recent proxy and the leftmost IP address is the IP address of the originating client.

Fix example by removing trailing space.

Signed-off-by: Alexander Yastrebov <[email protected]>
  • Loading branch information
AlexanderYastrebov authored Sep 10, 2024
1 parent 4460a02 commit 04972ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference/predicates.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ Parameters:
Examples:

```
HeaderRegexp("X-Forwarded-For", "^192\.168\.0\.[0-2]?[0-9]?[0-9] ")
HeaderRegexp("X-Forwarded-For", "^192\.168\.0\.[0-2]?[0-9]?[0-9]")
HeaderRegexp("Accept", "application/(json|xml)")
```

Expand Down

0 comments on commit 04972ff

Please sign in to comment.