From 9d44b09fd45a08e0029ca6f84b2f34a506caed71 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sat, 9 Feb 2019 11:27:18 -0800 Subject: [PATCH] action_utils: Fix checking for URL availability Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/action_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/action_utils.py b/plinth/action_utils.py index 6051f7a5c..0afbc8a00 100644 --- a/plinth/action_utils.py +++ b/plinth/action_utils.py @@ -351,7 +351,7 @@ def _check_port(port, kind='tcp', listen_address=None): def check_url(url, kind=None, env=None, check_certificate=True, extra_options=None, wrapper=None, expected_output=None): """Check whether a URL is accessible.""" - command = ['curl', '-f', '-w', '%{response_code}', url] + command = ['curl', '--location', '-f', '-w', '%{response_code}', url] if wrapper: command.insert(0, wrapper)