We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0402e60 commit 4fa7012Copy full SHA for 4fa7012
1 file changed
src/aiontfy/ntfy.py
@@ -45,7 +45,9 @@ def __init__(
45
self._headers = None
46
47
if username is not None and password is not None:
48
- self._headers = {"Authorization": BasicAuth(username, password).encode()}
+ self._headers = {
49
+ "Authorization": BasicAuth(username, password, "utf8").encode()
50
+ }
51
elif token is not None:
52
self._headers = {"Authorization": f"Bearer {token}"}
53
0 commit comments