souphttpclientsink: Implement automatic-redirect property
authorSebastian Dröge <sebastian@centricular.com>
Sun, 8 Mar 2015 17:02:51 +0000 (18:02 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 8 Mar 2015 17:02:51 +0000 (18:02 +0100)
ext/soup/gstsouphttpclientsink.c

index 751aab4..82d065d 100644 (file)
@@ -655,6 +655,8 @@ send_message_locked (GstSoupHttpClientSink * souphttpsink)
   }
 
   souphttpsink->message = soup_message_new ("PUT", souphttpsink->location);
+  soup_message_set_flags (souphttpsink->message,
+      (souphttpsink->automatic_redirect ? 0 : SOUP_MESSAGE_NO_REDIRECT));
 
   n = 0;
   if (souphttpsink->offset == 0) {