diff --git a/subprojects/gst-plugins-bad/ext/curl/gstcurlhttpsink.c b/subprojects/gst-plugins-bad/ext/curl/gstcurlhttpsink.c index 8ae2676a81..451a9739d8 100644 --- a/subprojects/gst-plugins-bad/ext/curl/gstcurlhttpsink.c +++ b/subprojects/gst-plugins-bad/ext/curl/gstcurlhttpsink.c @@ -188,9 +188,7 @@ gst_curl_http_sink_init (GstCurlHttpSink * sink) sink->discovered_content_type = NULL; sink->proxy_port = DEFAULT_PROXY_PORT; - sink->proxy_headers_set = FALSE; sink->proxy_auth = FALSE; - sink->use_proxy = FALSE; sink->proxy_conn_established = FALSE; sink->proxy_resp = -1; } @@ -334,13 +332,6 @@ gst_curl_http_sink_set_header_unlocked (GstCurlBaseSink * bcsink) sink->header_list = NULL; } - if (!sink->proxy_headers_set && sink->use_proxy) { - sink->header_list = curl_slist_append (sink->header_list, - "Content-Length: 0"); - sink->proxy_headers_set = TRUE; - goto set_headers; - } - if (sink->use_content_length) { /* if content length is used we assume that every buffer is one * entire file, which is the case when uploading several jpegs */ @@ -375,8 +366,6 @@ gst_curl_http_sink_set_header_unlocked (GstCurlBaseSink * bcsink) } -set_headers: - if (bcsink->file_name) { tmp = g_strdup_printf ("Content-Disposition: attachment; filename=" "\"%s\"", bcsink->file_name); @@ -579,7 +568,5 @@ proxy_setup (GstCurlBaseSink * bcsink) } } - sink->use_proxy = TRUE; - return TRUE; } diff --git a/subprojects/gst-plugins-bad/ext/curl/gstcurlhttpsink.h b/subprojects/gst-plugins-bad/ext/curl/gstcurlhttpsink.h index d2e6f19d86..ad3a11a92d 100644 --- a/subprojects/gst-plugins-bad/ext/curl/gstcurlhttpsink.h +++ b/subprojects/gst-plugins-bad/ext/curl/gstcurlhttpsink.h @@ -52,8 +52,6 @@ struct _GstCurlHttpSink gboolean use_content_length; gchar *content_type; gchar *discovered_content_type; - gboolean use_proxy; - gboolean proxy_headers_set; gboolean proxy_auth; gboolean proxy_conn_established; glong proxy_resp;