From bfb211ccda439e8592c8257c900ec43430ed10ec Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Tue, 18 Dec 2018 06:39:49 -0500 Subject: [PATCH] Fix for test notification returning a 404 behind a reverse proxy. --- bazarr/main.py | 6 +++--- views/settings.tpl | 8 +++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/bazarr/main.py b/bazarr/main.py index 3d92c3118..df996b8ff 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -1744,12 +1744,12 @@ def test_url(protocol, url): return dict(status=True, version=result) -@route(base_url + 'test_notification/', method='GET') +@route(base_url + 'test_notification//', method='GET') @custom_auth_basic(check_credentials) -def test_notification(provider): +def test_notification(protocol, provider): provider = urllib.unquote(provider) apobj = apprise.Apprise() - apobj.add(provider) + apobj.add(protocol + "://" + provider) apobj.notify( title='Bazarr test notification', diff --git a/views/settings.tpl b/views/settings.tpl index 5a6d448c8..eb88e14df 100644 --- a/views/settings.tpl +++ b/views/settings.tpl @@ -1366,8 +1366,14 @@