DOC: Add RFC references for the path-strip-dot(dot)? normalizers

This is RFC 3986#6.2.2.3.
This commit is contained in:
Tim Duesterhus 2021-04-21 21:20:35 +02:00 committed by Christopher Faulet
parent c315efda60
commit d6d33deaea

View File

@ -6050,7 +6050,8 @@ http-request normalize-uri query-sort-by-name [ { if | unless } <condition> ]
The following normalizers are available: The following normalizers are available:
- path-strip-dot: Removes "/./" segments within the "path" component. - path-strip-dot: Removes "/./" segments within the "path" component
(RFC 3986#6.2.2.3).
Example: Example:
- /. -> / - /. -> /
@ -6058,7 +6059,9 @@ http-request normalize-uri query-sort-by-name [ { if | unless } <condition> ]
- /a/./a -> /a/a - /a/./a -> /a/a
- /.well-known/ -> /.well-known/ (no change) - /.well-known/ -> /.well-known/ (no change)
- path-strip-dotdot: Normalizes "/../" segments within the "path" component. - path-strip-dotdot: Normalizes "/../" segments within the "path" component
(RFC 3986#6.2.2.3).
This merges segments that attempt to access the parent directory with This merges segments that attempt to access the parent directory with
their preceding segment. Empty segments do not receive special treatment. their preceding segment. Empty segments do not receive special treatment.
Use the "path-merge-slashes" normalizer first if this is undesired. Use the "path-merge-slashes" normalizer first if this is undesired.