provisional: Attachments now uses base64 padding not raw mode (#629)
* corrected base64 encoding of attachments to use padding as that's what cuke JVM does
Этот коммит содержится в:
родитель
9558224cce
коммит
3abb346b28
2 изменённых файлов: 5 добавлений и 5 удалений
|
@ -308,7 +308,7 @@ func (f *Cuke) buildCukeStep(pickle *messages.Pickle, stepResult models.PickleSt
|
||||||
for _, a := range stepResult.Attachments {
|
for _, a := range stepResult.Attachments {
|
||||||
attachments = append(attachments, cukeEmbedding{
|
attachments = append(attachments, cukeEmbedding{
|
||||||
Name: a.Name,
|
Name: a.Name,
|
||||||
Data: base64.RawStdEncoding.EncodeToString(a.Data),
|
Data: base64.StdEncoding.EncodeToString(a.Data),
|
||||||
MimeType: a.MimeType,
|
MimeType: a.MimeType,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,12 +30,12 @@
|
||||||
{
|
{
|
||||||
"name": "TheFilename1",
|
"name": "TheFilename1",
|
||||||
"mime_type": "text/plain",
|
"mime_type": "text/plain",
|
||||||
"data": "VGhlRGF0YTE"
|
"data": "VGhlRGF0YTE="
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "TheFilename2",
|
"name": "TheFilename2",
|
||||||
"mime_type": "text/plain",
|
"mime_type": "text/plain",
|
||||||
"data": "VGhlRGF0YTI"
|
"data": "VGhlRGF0YTI="
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -54,12 +54,12 @@
|
||||||
{
|
{
|
||||||
"name": "TheFilename1",
|
"name": "TheFilename1",
|
||||||
"mime_type": "text/plain",
|
"mime_type": "text/plain",
|
||||||
"data": "VGhlRGF0YTE"
|
"data": "VGhlRGF0YTE="
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "TheFilename2",
|
"name": "TheFilename2",
|
||||||
"mime_type": "text/plain",
|
"mime_type": "text/plain",
|
||||||
"data": "VGhlRGF0YTI"
|
"data": "VGhlRGF0YTI="
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче