mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
souphttpclientsink: Implement cookies property
This commit is contained in:
parent
b2bcb3d61f
commit
8965619f13
1 changed files with 10 additions and 0 deletions
|
@ -428,6 +428,7 @@ gst_soup_http_client_sink_finalize (GObject * object)
|
|||
if (souphttpsink->proxy)
|
||||
soup_uri_free (souphttpsink->proxy);
|
||||
g_free (souphttpsink->location);
|
||||
g_strfreev (souphttpsink->cookies);
|
||||
|
||||
g_cond_clear (&souphttpsink->cond);
|
||||
g_mutex_clear (&souphttpsink->mutex);
|
||||
|
@ -658,6 +659,15 @@ send_message_locked (GstSoupHttpClientSink * souphttpsink)
|
|||
soup_message_set_flags (souphttpsink->message,
|
||||
(souphttpsink->automatic_redirect ? 0 : SOUP_MESSAGE_NO_REDIRECT));
|
||||
|
||||
if (souphttpsink->cookies) {
|
||||
gchar **cookie;
|
||||
|
||||
for (cookie = souphttpsink->cookies; *cookie != NULL; cookie++) {
|
||||
soup_message_headers_append (souphttpsink->message->request_headers,
|
||||
"Cookie", *cookie);
|
||||
}
|
||||
}
|
||||
|
||||
n = 0;
|
||||
if (souphttpsink->offset == 0) {
|
||||
for (g = souphttpsink->streamheader_buffers; g; g = g_list_next (g)) {
|
||||
|
|
Loading…
Reference in a new issue