DOC: Clarify %HP description in log-format
authorMaciej Zdeb <maciej@zdeb.pl>
Thu, 26 Nov 2020 10:45:52 +0000 (10:45 +0000)
committerWilly Tarreau <w@1wt.eu>
Thu, 26 Nov 2020 18:07:21 +0000 (19:07 +0100)
%HP is used to report HTTP request URI in logs, which might be relative
or absolute. Description in documentation should not suggest that it
behaves exactly the same as "path" sample fetch.

This is even more important after 30ee1efe676e8264af16bab833c621d60a72a4d7
because right now, when HTTP2 is a standard, %HP usually returns absolute
URI.

This might be backported as far as 2.1

doc/configuration.txt

index 208ce2d..e28601f 100644 (file)
@@ -19617,7 +19617,7 @@ Please refer to the table below for currently defined variables :
   | H | %CS  | captured_response_cookie                      | string      |
   |   | %H   | hostname                                      | string      |
   | H | %HM  | HTTP method (ex: POST)                        | string      |
-  | H | %HP  | HTTP request URI without query string (path)  | string      |
+  | H | %HP  | HTTP request URI without query string         | string      |
   | H | %HQ  | HTTP request URI query string (ex: ?bar=baz)  | string      |
   | H | %HU  | HTTP request URI (ex: /foo?bar=baz)           | string      |
   | H | %HV  | HTTP version (ex: HTTP/1.0)                   | string      |