integrating patch from @erkkiaalto in https://github.com/chauth/confluence_http_authenticator/issues/2