diff --git a/bin/srv.py b/bin/srv.py index 22f1a2e..f1bdfae 100644 --- a/bin/srv.py +++ b/bin/srv.py @@ -49,7 +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'] - return not any([x in user_agent for x in plaintext_clients]) + return all([x not in user_agent for x in plaintext_clients]) @app.route('/files/') def send_static(path):