Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 302849c

Browse files
committed
[client] remove header if disable_impersonate enabled
1 parent 4d578df commit 302849c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycti/api/opencti_api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def query(self, query, variables=None, disable_impersonate=False):
299299

300300
query_headers = self.request_headers
301301
if disable_impersonate and "opencti-applicant-id" in query_headers:
302-
del query_headers["opencti"]
302+
del query_headers["opencti-applicant-id"]
303303
# If yes, transform variable (file to null) and create multipart query
304304
if len(files_vars) > 0:
305305
multipart_data = {

0 commit comments

Comments
 (0)