[gvfs] http: Ensure the range header is updated
- From: Ross Lagerwall <rossl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] http: Ensure the range header is updated
- Date: Sun, 8 Dec 2013 11:16:13 +0000 (UTC)
commit 06b5820152e6b4647ef63cc2498511fbed6d4806
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 5cee957..a6ef3e0 100644
--- a/daemon/gvfshttpinputstream.c
+++ b/daemon/gvfshttpinputstream.c
@@ -115,11 +115,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]