Merge pull request #53 from clmoreno/master
Adding skype to SNEAKY_USER_AGENTS
This commit is contained in:
commit
f569856f52
2 changed files with 3 additions and 2 deletions
|
@ -9,7 +9,7 @@ from redis.exceptions import ConnectionError
|
||||||
from flask import abort, Flask, render_template, request
|
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))
|
SNEAKY_USER_AGENTS_RE = re.compile('|'.join(SNEAKY_USER_AGENTS))
|
||||||
NO_SSL = os.environ.get('NO_SSL', False)
|
NO_SSL = os.environ.get('NO_SSL', False)
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
3
tests.py
3
tests.py
|
@ -85,7 +85,8 @@ class SnapPassRoutesTestCase(TestCase):
|
||||||
"Facebot/1.0",
|
"Facebot/1.0",
|
||||||
"Twitterbot/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.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:
|
for ua in a_few_sneaky_bots:
|
||||||
|
|
Loading…
Reference in a new issue