Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -73,7 +73,7 @@ def check_url():
|
|
| 73 |
return jsonify({'broken': True})
|
| 74 |
try:
|
| 75 |
# Follow redirects and check final status
|
| 76 |
-
response = requests.head(url, allow_redirects=True, timeout=
|
| 77 |
if response.status_code == 200:
|
| 78 |
return jsonify({'broken': False})
|
| 79 |
else:
|
|
|
|
| 73 |
return jsonify({'broken': True})
|
| 74 |
try:
|
| 75 |
# Follow redirects and check final status
|
| 76 |
+
response = requests.head(url, allow_redirects=True, timeout=10)
|
| 77 |
if response.status_code == 200:
|
| 78 |
return jsonify({'broken': False})
|
| 79 |
else:
|