Skip to content

Commit 1fbc9dc

Browse files
authored
Merge pull request #58 from green-api/SW-3856
SW-3856 Added GA-Filename header
2 parents 82b8d50 + 93b1e3f commit 1fbc9dc

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)