From fbcb1b60a476ee41194c52c980b3d50ca2fa472d Mon Sep 17 00:00:00 2001 From: bashrc Date: Tue, 7 Apr 2026 17:14:13 +0100 Subject: [PATCH] Remove newlines from logging --- daemon_get.py | 2 +- daemon_post.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon_get.py b/daemon_get.py index c640d6968..135d891e8 100644 --- a/daemon_get.py +++ b/daemon_get.py @@ -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 diff --git a/daemon_post.py b/daemon_post.py index b72a82893..8d6e60d9d 100644 --- a/daemon_post.py +++ b/daemon_post.py @@ -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