1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-12-04 11:51:35 +03:00

Merge pull request #100 from grayed/master

Add OpenBSD ftp(1) to the list of plaintext user agents
This commit is contained in:
Igor Chubin 2018-08-16 10:09:21 +02:00 committed by GitHub
commit e43b94e396
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):