Looks mandatory now.

This commit is contained in:
Julien Palard 2024-01-04 16:24:37 +01:00
parent d65b4120c2
commit 9525cd8ec1
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class Discourse:
def __enter__(self):
self.session = requests.Session()
self.session.headers.update({"Api-Key": self.api_key})
self.session.headers.update({"Api-Key": self.api_key, "Api-Username": "system"})
return self
def __exit__(self, exc_type, exc_value, traceback):