mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
Allow '405 method not allowed' in URL diagnostics
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
3494098251
commit
8059e6d12c
@ -323,7 +323,7 @@ def diagnose_url(url, kind=None, env=None, check_certificate=True,
|
|||||||
except subprocess.CalledProcessError as exception:
|
except subprocess.CalledProcessError as exception:
|
||||||
result = 'failed'
|
result = 'failed'
|
||||||
# Authorization failed is a success
|
# Authorization failed is a success
|
||||||
if exception.stdout.decode().strip() == '401':
|
if exception.stdout.decode().strip() in ('401', '405'):
|
||||||
result = 'passed'
|
result = 'passed'
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
result = 'error'
|
result = 'error'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user