souphttpsrc: Use a in-memory cookie jar by default in sessions we created
authorSebastian Dröge <sebastian@centricular.com>
Thu, 16 Mar 2017 13:12:07 +0000 (15:12 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 9 May 2017 12:27:00 +0000 (14:27 +0200)
This ensures that cookies are stored and used as set by the server, and
shared with other souphttpsrc that use the same SoupSession.

https://bugzilla.gnome.org/show_bug.cgi?id=780140

ext/soup/gstsouphttpsrc.c

index 986c4c0..46f07e4 100644 (file)
@@ -967,6 +967,7 @@ gst_soup_http_src_session_open (GstSoupHTTPSrc * src)
             GST_ELEMENT (src));
         soup_session_add_feature_by_type (src->session,
             SOUP_TYPE_CONTENT_DECODER);
+        soup_session_add_feature_by_type (src->session, SOUP_TYPE_COOKIE_JAR);
 
         if (can_share) {
           GstContext *context;