diff --git a/bin/srv.py b/bin/srv.py index c7bde53..22f1a2e 100644 --- a/bin/srv.py +++ b/bin/srv.py @@ -49,9 +49,7 @@ def is_html_needed(user_agent): Basing on `user_agent`, return whether it needs HTML or ANSI """ plaintext_clients = ['curl', 'wget', 'fetch', 'httpie', 'lwp-request', 'python-requests'] - if any([x in user_agent for x in plaintext_clients]): - return False - return True + return not any([x in user_agent for x in plaintext_clients]) @app.route('/files/') def send_static(path):