mirror of https://gitlab.com/bashrc2/epicyon
Remove newlines from logging
parent
9e575d87e4
commit
fbcb1b60a4
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue