Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
url preview: Update Zulip User-Agent.
akshatdalton5f8a10124e5e
diff --git a/zerver/lib/url_preview/preview.py b/zerver/lib/url_preview/preview.pyindex fc4ac208b16..8abd48536c9 100644--- a/zerver/lib/url_preview/preview.py+++ b/zerver/lib/url_preview/preview.py@@ -27,9 +27,8 @@ link_regex = re.compile(# Use Chrome User-Agent, since some sites refuse to work on old browsersZULIP_URL_PREVIEW_USER_AGENT = (- 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ZulipURLPreview/{version}; '- '+{external_host}) Chrome/81.0.4044.113 Safari/537.36'-).format(version=ZULIP_VERSION, external_host=settings.EXTERNAL_HOST)+ 'Mozilla/5.0 (compatible; ZulipURLPreview/{version}; +{external_host})'+).format(version=ZULIP_VERSION, external_host=settings.ROOT_DOMAIN_URI)# FIXME: This header and timeout are not used by pyoembed, when trying to autodiscover!HEADERS = {'User-Agent': ZULIP_URL_PREVIEW_USER_AGENT}