mirror of
https://github.com/YunoHost/check-http.git
synced 2024-09-03 19:56:42 +02:00
[fix] people have more than 30 domains x_x
This commit is contained in:
parent
a3be8ca8fb
commit
503ea4d440
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ async def check_http(request):
|
|||
# Check domain list format
|
||||
assert isinstance(data["domains"], list), "'domains' ain't a list"
|
||||
assert len(data["domains"]) > 0, "'domains' list is empty"
|
||||
assert len(data["domains"]) < 30, "You cannot test that many domains"
|
||||
assert len(data["domains"]) < 60, "You cannot test that many domains"
|
||||
for domain in data["domains"]:
|
||||
assert isinstance(domain, str), "domain names must be strings"
|
||||
assert len(domain) < 100, "Domain %s name seems pretty long, that's suspicious...?" % domain
|
||||
|
|
Loading…
Reference in a new issue