souphttpclientsink: Implement automatic-redirect property

This commit is contained in:
Sebastian Dröge 2015-03-08 18:02:51 +01:00
parent 814f741a28
commit b2bcb3d61f

View file

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