From a8348037acf7c7010cc8fb9e83792f13fa12cc46 Mon Sep 17 00:00:00 2001 From: Vadim Zhukov Date: Wed, 15 Aug 2018 02:51:03 +0300 Subject: [PATCH] Add OpenBSD ftp(1) to the list of plaintext user agents. --- bin/srv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/srv.py b/bin/srv.py index 858cf3b..90f95bb 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'] + 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):