Fix HTTP to HTTPS URL in logs_page.py

This commit is contained in:
Théophile Diot 2024-05-24 14:08:20 +01:00
parent 79c536be9e
commit c833041607
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -134,7 +134,7 @@ try:
current_date = datetime.now()
resp = get(
f"http://www.example.com{UI_URL}/logs/{first_instance}?from_date={int((current_date - timedelta(weeks=1)).timestamp())}&to_date={int((current_date - timedelta(days=1)).timestamp())}",
f"https://www.example.com{UI_URL}/logs/{first_instance}?from_date={int((current_date - timedelta(weeks=1)).timestamp())}&to_date={int((current_date - timedelta(days=1)).timestamp())}",
headers={"Host": "www.example.com", "User-Agent": DRIVER.execute_script("return navigator.userAgent;")},
cookies={"session": DRIVER.get_cookies()[0]["value"]},
verify=False,