Remove newlines from logging

main
bashrc 2026-04-07 17:14:13 +01:00
parent 9e575d87e4
commit fbcb1b60a4
2 changed files with 2 additions and 2 deletions

View File

@ -387,7 +387,7 @@ def daemon_http_get(self) -> None:
# malevolent intent
if check_mixed_user_agent(ua_str):
print('GET HTTP contradictory browsers within user agent ' +
str(self.headers))
str(self.headers).replace('\n', ' '))
http_400(self)
return

View File

@ -287,7 +287,7 @@ def daemon_http_post(self) -> None:
# malevolent intent
if check_mixed_user_agent(ua_str):
print('POST HTTP contradictory browsers within user agent ' +
str(self.headers))
str(self.headers).replace('\n', ' '))
http_400(self)
return