From 8059e6d12cb87891f47cb89b9720f492d1111e8c Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 5 Apr 2017 12:06:43 +0530 Subject: [PATCH] Allow '405 method not allowed' in URL diagnostics Signed-off-by: Sunil Mohan Adapa --- 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 3952728d4..19c5ff8d2 100644 --- a/plinth/action_utils.py +++ b/plinth/action_utils.py @@ -323,7 +323,7 @@ def diagnose_url(url, kind=None, env=None, check_certificate=True, except subprocess.CalledProcessError as exception: result = 'failed' # Authorization failed is a success - if exception.stdout.decode().strip() == '401': + if exception.stdout.decode().strip() in ('401', '405'): result = 'passed' except FileNotFoundError: result = 'error'