From 227fa64211dcf9a7044e0041e04482df16a743a0 Mon Sep 17 00:00:00 2001 From: Aaron Huang Date: Thu, 18 Feb 2016 19:08:17 +0800 Subject: [PATCH] Disable html output when use httpie --- bin/srv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/srv.py b/bin/srv.py index 357753f..06a6b92 100644 --- a/bin/srv.py +++ b/bin/srv.py @@ -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':