summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/curl/gstcurlsmtpsink.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/curl/gstcurlsmtpsink.c b/ext/curl/gstcurlsmtpsink.c
index 03f178bdb..f8be5d06a 100644
--- a/ext/curl/gstcurlsmtpsink.c
+++ b/ext/curl/gstcurlsmtpsink.c
@@ -725,6 +725,13 @@ gst_curl_smtp_sink_set_transfer_options_unlocked (GstCurlBaseSink * bcsink)
return FALSE;
}
+ res = curl_easy_setopt (bcsink->curl, CURLOPT_UPLOAD, 1L);
+ if (res != CURLE_OK) {
+ bcsink->error = g_strdup_printf ("failed to prepare for upload: %s",
+ curl_easy_strerror (res));
+ return FALSE;
+ }
+
parent_class = GST_CURL_TLS_SINK_GET_CLASS (sink);
if (sink->use_ssl) {