Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -115,7 +115,7 @@ def check_site_speed(url):
|
|
| 115 |
|
| 116 |
def check_mobile_speed(url):
|
| 117 |
try:
|
| 118 |
-
headers = {"Mozilla/5.0 (Android 11; Mobile; rv:90.0) Gecko/90.0 Firefox/90.0"}
|
| 119 |
start_time = time.time()
|
| 120 |
response = requests.get(url, headers=headers, timeout=10)
|
| 121 |
response.raise_for_status()
|
|
|
|
| 115 |
|
| 116 |
def check_mobile_speed(url):
|
| 117 |
try:
|
| 118 |
+
headers = {"User-Agent": "Mozilla/5.0 (Android 11; Mobile; rv:90.0) Gecko/90.0 Firefox/90.0"}
|
| 119 |
start_time = time.time()
|
| 120 |
response = requests.get(url, headers=headers, timeout=10)
|
| 121 |
response.raise_for_status()
|