[gvfs/gnome-3-10] http: Ensure the range header is updated



commit ee9743d30107fb86ba58d3bf78c85ef2792797b4
Author: Ross Lagerwall <rosslagerwall gmail com>
Date:   Sun Dec 8 13:02:35 2013 +0200

    http: Ensure the range header is updated
    
    Ensure that the range header is updated every time ensure_request() is
    called in case it has been updated.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710534

 daemon/gvfshttpinputstream.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/daemon/gvfshttpinputstream.c b/daemon/gvfshttpinputstream.c
index 4d18bcf..fb1929a 100644
--- a/daemon/gvfshttpinputstream.c
+++ b/daemon/gvfshttpinputstream.c
@@ -117,11 +117,11 @@ g_vfs_http_input_stream_ensure_request (GInputStream *stream)
       g_assert_no_error (error);
       priv->msg = soup_request_http_get_message (SOUP_REQUEST_HTTP (priv->req));
       priv->offset = 0;
-
-      if (priv->range)
-       soup_message_headers_replace (priv->msg->request_headers, "Range", priv->range);
     }
 
+  if (priv->range)
+    soup_message_headers_replace (priv->msg->request_headers, "Range", priv->range);
+
   return priv->req;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]