Extend path filter to also cover POST requests

This commit is contained in:
yangdx 2025-07-31 02:06:56 +08:00
parent 5282312c64
commit d0bc5e7c4a

View file

@ -145,7 +145,7 @@ class LightragPathFilter(logging.Filter):
# Filter out successful GET requests to filtered paths
if (
method == "GET"
method == "GET" or method == "POST"
and (status == 200 or status == 304)
and path in self.filtered_paths
):