URL service: enable HTTP basic auth if either username or secret is set

Update documentation accordingly.
This commit is contained in:
Rasmus Eskola 2014-04-23 21:33:12 +03:00
parent 5b960484eb
commit c73f4d55be
2 changed files with 5 additions and 5 deletions

View File

@ -236,8 +236,8 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or
This option must be set when using Boxcar or Pushover. This option must be set when using Boxcar or Pushover.
When using the custom URL service, if this option is set it will be used as username When using the custom URL service, if this option is set it will enable HTTP basic
for HTTP basic authentication. authentication and be used as username.
* `secret = ""` * `secret = ""`
@ -245,8 +245,8 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or
This option must be set when using Notify My Android, Pushover, Prowl, Supertoasty or PushBullet. This option must be set when using Notify My Android, Pushover, Prowl, Supertoasty or PushBullet.
When using the custom URL service, if this option is set it will be used as password When using the custom URL service, if this option is set it will enable HTTP basic
for HTTP basic authentication. authentication and be used as password.
* `target = ""` * `target = ""`

View File

@ -476,7 +476,7 @@ class CPushMod : public CModule
} }
// HTTP basic auth // HTTP basic auth
if(options["username"] != "") if(options["username"] != "" || options["secret"] != "")
{ {
service_auth = options["username"] + CString(":") + options["secret"]; service_auth = options["username"] + CString(":") + options["secret"];
} }