From 6b3c40922bf7aa0d3bc07df99a3a82b07067bff2 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Mon, 4 Feb 2019 07:27:22 +0100 Subject: [PATCH] force ansi output for line mode (fixes #266) --- lib/wttr_srv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/wttr_srv.py b/lib/wttr_srv.py index 340ce96..d54016b 100644 --- a/lib/wttr_srv.py +++ b/lib/wttr_srv.py @@ -119,6 +119,8 @@ def get_output_format(request, query): Return new location (can be rewritten) """ + if 'format' in query: + return False # FIXME user_agent = request.headers.get('User-Agent', '').lower() if query.get('force-ansi'):