Skip to content

Commit 821b63a

Browse files
Removed redirected when checking the internet connection (#1165)
1 parent e1962ea commit 821b63a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/services/installer/app/checks/internet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def check_internet_connection(config: InstallationConfig | UninstallationConfig
2626
try:
2727
logger.info("Checking Internet access.")
2828
logger.debug("Sending request to http://ghcr.io...")
29-
requests.head("http://ghcr.io", allow_redirects=True, timeout=10).raise_for_status()
29+
requests.head("http://ghcr.io", allow_redirects=False, timeout=10).raise_for_status()
3030
logger.debug("Internet is accessible.")
3131
except requests.RequestException as error:
3232
logger.debug("Internet is not accessible.")

0 commit comments

Comments
 (0)