Skip to content
Snippets Groups Projects
Commit cc0e92d2 authored by Bing Chilling's avatar Bing Chilling
Browse files

Update app.py

parent d49a9f4a
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,10 @@ def normalize_utf8(s): ...@@ -38,7 +38,10 @@ def normalize_utf8(s):
# Render the template with compatibility detection. # Render the template with compatibility detection.
def render_template_c(tmpl, **kwargs): 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') ua = request.headers.get('User-Agent')
for text_ua in text_browsers: for text_ua in text_browsers:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment