mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
curlsmtpsink: Email with multipart content-type should end with a final boundary
Add final boundary for each of the sending out emails from smtpsink. https://bugzilla.gnome.org/show_bug.cgi?id=736134
This commit is contained in:
parent
f8f2cca0e4
commit
22e09f19ed
1 changed files with 4 additions and 0 deletions
|
@ -918,6 +918,10 @@ gst_curl_smtp_sink_transfer_data_buffer (GstCurlBaseSink * bcsink,
|
|||
}
|
||||
|
||||
if (sink->base64_chunk != NULL) {
|
||||
if (sink->nbr_attachments_left == sink->nbr_attachments &&
|
||||
bcsink->transfer_buf->len == 0) {
|
||||
add_final_boundary_unlocked (sink);
|
||||
}
|
||||
bytes_to_send =
|
||||
transfer_chunk (curl_ptr, bcsink->transfer_buf, sink->base64_chunk,
|
||||
block_size, last_chunk);
|
||||
|
|
Loading…
Reference in a new issue