From 5a84c230af0c5afada0c8352d960346dbd9178be Mon Sep 17 00:00:00 2001 From: Vadim Zhukov Date: Fri, 17 Aug 2018 19:14:56 +0300 Subject: [PATCH] User agents are "normalized" to lower case, so make it "openbsd ftp" instead. --- bin/srv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/srv.py b/bin/srv.py index fe5cb25..b44f934 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', 'OpenBSD ftp', 'python-requests'] + plaintext_clients = ['curl', 'wget', 'fetch', 'httpie', 'lwp-request', 'openbsd ftp', 'python-requests'] return all([x not in user_agent for x in plaintext_clients]) def is_result_a_script(query):