Looks mandatory now.
This commit is contained in:
parent
d65b4120c2
commit
9525cd8ec1
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue