From 04972ff025021e8563651b6fad7593735bcdd6af Mon Sep 17 00:00:00 2001 From: Alexander Yastrebov Date: Tue, 10 Sep 2024 17:09:39 +0200 Subject: [PATCH] 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 --- docs/reference/predicates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/predicates.md b/docs/reference/predicates.md index 3908e88b32..b9cd9b5371 100644 --- a/docs/reference/predicates.md +++ b/docs/reference/predicates.md @@ -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)") ```