diff --git a/apprise/plugins/NotifySignalAPI.py b/apprise/plugins/NotifySignalAPI.py index 84dc2243..625a6d42 100644 --- a/apprise/plugins/NotifySignalAPI.py +++ b/apprise/plugins/NotifySignalAPI.py @@ -320,7 +320,8 @@ class NotifySignalAPI(NotifyBase): verify=self.verify_certificate, timeout=self.request_timeout, ) - if r.status_code != requests.codes.ok: + if r.status_code not in ( + requests.codes.ok, requests.codes.created): # We had a problem status_str = \ NotifySignalAPI.http_response_code_lookup( diff --git a/test/test_plugin_signal.py b/test/test_plugin_signal.py index a4a0df14..77b5d158 100644 --- a/test/test_plugin_signal.py +++ b/test/test_plugin_signal.py @@ -112,6 +112,11 @@ apprise_url_tests = ( # use get args to acomplish the same thing (use source instead of from) 'instance': plugins.NotifySignalAPI, }), + ('signals://user:password@localhost/{}/{}'.format('1' * 11, '3' * 11), { + 'instance': plugins.NotifySignalAPI, + # Test that a 201 response code is still accepted + 'requests_response_code': 201, + }), ('signals://localhost/{}/{}/{}?batch=True'.format( '1' * 11, '3' * 11, '4' * 11), { # test batch mode