mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-15 14:56:42 +00:00
fix(GODT-2464): Filter attachment name from content-type parameter to not send it twice to the API.
This commit is contained in:
@ -438,6 +438,10 @@ func (user *User) createAttachments(
|
||||
}
|
||||
}
|
||||
|
||||
// Exclude name from params since this is already provided using Filename.
|
||||
delete(att.MIMEParams, "name")
|
||||
delete(att.MIMEParams, "filename")
|
||||
|
||||
attachment, err := client.UploadAttachment(ctx, addrKR, proton.CreateAttachmentReq{
|
||||
Filename: att.Name,
|
||||
MessageID: draftID,
|
||||
|
||||
Reference in New Issue
Block a user