diff --git a/snappass/main.py b/snappass/main.py index 30f6926..c3e16d7 100644 --- a/snappass/main.py +++ b/snappass/main.py @@ -9,7 +9,7 @@ from redis.exceptions import ConnectionError from flask import abort, Flask, render_template, request -SNEAKY_USER_AGENTS = ('Slackbot', 'facebookexternalhit', 'Twitterbot', 'Facebot', 'WhatsApp') +SNEAKY_USER_AGENTS = ('Slackbot', 'facebookexternalhit', 'Twitterbot', 'Facebot', 'WhatsApp', 'SkypeUriPreview') SNEAKY_USER_AGENTS_RE = re.compile('|'.join(SNEAKY_USER_AGENTS)) NO_SSL = os.environ.get('NO_SSL', False) app = Flask(__name__) diff --git a/tests.py b/tests.py index bc5e709..9203f15 100644 --- a/tests.py +++ b/tests.py @@ -85,7 +85,8 @@ class SnapPassRoutesTestCase(TestCase): "Facebot/1.0", "Twitterbot/1.0", "_WhatsApp/2.12.81 (Windows NT 6.1; U; es-ES) Presto/2.9.181 Version/12.00", - "WhatsApp/2.16.6/i" + "WhatsApp/2.16.6/i", + "SkypeUriPreview Preview/0.5" ] for ua in a_few_sneaky_bots: