Disable html output when use httpie

This commit is contained in:
Aaron Huang 2016-02-18 19:08:17 +08:00
parent ea0721ea67
commit 227fa64211

View file

@ -225,7 +225,7 @@ def wttr(location = None):
user_agent = request.headers.get('User-Agent').lower()
html_output = True
if 'curl' in user_agent or 'wget' in user_agent:
if 'curl' in user_agent or 'wget' in user_agent or 'httpie' in user_agent:
html_output = False
if location == ':help':