Skip to content

Commit 93b1e3f

Browse files
committed
Added GA-Filename header
1 parent b9124c7 commit 93b1e3f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

whatsapp_api_client_python/tools/sending.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ def uploadFile(self, path: str) -> Response:
187187
f"uploadFile/{self.api.apiTokenInstance}"
188188
),
189189
data=file.read(),
190-
headers={"Content-Type": content_type}
190+
headers={"Content-Type": content_type,
191+
"GA-Filename": file_name}
191192
)
192193

193194
def sendLocation(

0 commit comments

Comments
 (0)