diff --git a/README.md b/README.md index c2f42a3..303c1d7 100755 --- a/README.md +++ b/README.md @@ -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. - When using the custom URL service, if this option is set it will be used as username - for HTTP basic authentication. + When using the custom URL service, if this option is set it will enable HTTP basic + authentication and be used as username. * `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. - When using the custom URL service, if this option is set it will be used as password - for HTTP basic authentication. + When using the custom URL service, if this option is set it will enable HTTP basic + authentication and be used as password. * `target = ""` diff --git a/push.cpp b/push.cpp index 0bfc50b..fa59b99 100755 --- a/push.cpp +++ b/push.cpp @@ -476,7 +476,7 @@ class CPushMod : public CModule } // HTTP basic auth - if(options["username"] != "") + if(options["username"] != "" || options["secret"] != "") { service_auth = options["username"] + CString(":") + options["secret"]; }