Browse files

User agents are "normalized" to lower case, so make it "openbsd ftp" …

  • Loading branch information...
grayed committed Aug 17, 2018
1 parent 4a60e1b commit 5a84c230af0c5afada0c8352d960346dbd9178be
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/
@@ -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):

0 comments on commit 5a84c23

Please sign in to comment.