Skip to content

Commit 04972ff

Browse files
docs: fix HeaderRegexp example (#3222)
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 <alexander.yastrebov@zalando.de>
1 parent 4460a02 commit 04972ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/reference/predicates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ Parameters:
309309
Examples:
310310

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

0 commit comments

Comments
 (0)