mirror of
https://github.com/chubin/cheat.sh.git
synced 2024-12-12 06:24:12 +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:
commit
e43b94e396
@ -49,7 +49,7 @@ def is_html_needed(user_agent):
|
|||||||
"""
|
"""
|
||||||
Basing on `user_agent`, return whether it needs HTML or ANSI
|
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])
|
return all([x not in user_agent for x in plaintext_clients])
|
||||||
|
|
||||||
def is_result_a_script(query):
|
def is_result_a_script(query):
|
||||||
|
Loading…
Reference in New Issue
Block a user