fix(GODT-2212): Preserver Header order in message building

https://github.com/ProtonMail/go-proton-api/pull/100
This commit is contained in:
Leander Beernaert
2023-09-25 14:32:46 +02:00
parent a1a5ffba5d
commit e422b28bc3
7 changed files with 37 additions and 22 deletions

View File

@ -340,10 +340,9 @@ func TestDownloadStage_JobAbortsOnAttachmentDownloadError(t *testing.T) {
MessageMetadata: proton.MessageMetadata{
ID: "msg",
},
Header: "",
ParsedHeaders: nil,
Body: "",
MIMEType: "",
Header: "",
Body: "",
MIMEType: "",
Attachments: []proton.Attachment{{
ID: "attach",
}},
@ -387,11 +386,10 @@ func buildDownloadStageData(tj *tjob, numMessages int, with422 bool) ([]string,
ID: msgID,
Size: len([]byte(msgID)),
},
Header: "",
ParsedHeaders: nil,
Body: msgID,
MIMEType: "",
Attachments: nil,
Header: "",
Body: msgID,
MIMEType: "",
Attachments: nil,
},
AttData: nil,
}