mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +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:
|
||||
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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user