Replace invalid well-known path

merge-requests/30/head
Bob Mottram 2024-08-05 13:07:40 +01:00
parent 8863447774
commit 60e5a1d5ba
1 changed files with 4 additions and 0 deletions

View File

@ -263,6 +263,10 @@ def daemon_http_get(self) -> None:
http_402(self)
return
# replace invalid .well-known path, prior to checking for suspicious paths
if self.path.startswith('/users/.well-known/'):
self.path = self.path.replace('/users/.well-known/', '/.well-known/')
# suspicious headers
if contains_suspicious_headers(self.headers):
print('GET HTTP suspicious headers ' + str(self.headers))