From cc0e92d2dc38c41d1a1b4b4168bdf313cc452668 Mon Sep 17 00:00:00 2001 From: Bing Chilling Date: Sat, 29 Jul 2023 01:17:37 +0000 Subject: [PATCH] Update app.py --- app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 82a095e..b6a9153 100644 --- a/app.py +++ b/app.py @@ -38,7 +38,10 @@ def normalize_utf8(s): # Render the template with compatibility detection. def render_template_c(tmpl, **kwargs): - text_browsers = ['w3m', 'Lynx', 'ELinks', 'Links', 'URL/Emacs', 'Emacs'] + text_browsers = ['w3m', 'Lynx', 'ELinks', 'Links', 'URL/Emacs', 'Emacs', + 'Mozilla/5.0 (compatible; hjdicks)', # abaco, mothra, etc + + ] ua = request.headers.get('User-Agent') for text_ua in text_browsers: