Jun 29 - Update app name, and documents
This commit is contained in:
@@ -109,7 +109,7 @@ def health_check(website_id):
|
||||
try:
|
||||
t0 = time.time()
|
||||
resp = _http_req.head(url, timeout=6, allow_redirects=True,
|
||||
headers={"User-Agent": "WebsiteChecker/1.0 (health-check)"})
|
||||
headers={"User-Agent": "BidChecker/1.0 (health-check)"})
|
||||
ms = int((time.time() - t0) * 1000)
|
||||
ok = resp.status_code < 400
|
||||
return jsonify({"status": "ok" if ok else "error", "ms": ms})
|
||||
|
||||
Reference in New Issue
Block a user