[rygel] core: Fix Content-Length header for partial requests
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Fix Content-Length header for partial requests
- Date: Sun, 21 Mar 2010 00:23:23 +0000 (UTC)
commit 69f98044992810b47e1b02242e1a048f99f4b3e1
Author: Jens Georg <mail jensge org>
Date: Sat Mar 20 14:18:49 2010 +0100
core: Fix Content-Length header for partial requests
src/rygel/rygel-http-byte-seek.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-http-byte-seek.vala b/src/rygel/rygel-http-byte-seek.vala
index ad47dae..de16c82 100644
--- a/src/rygel/rygel-http-byte-seek.vala
+++ b/src/rygel/rygel-http-byte-seek.vala
@@ -96,6 +96,6 @@ internal class Rygel.HTTPByteSeek : Rygel.HTTPSeek {
this.length.to_string ();
this.msg.response_headers.append ("Content-Range", range);
- this.msg.response_headers.set_content_length (this.length);
+ this.msg.response_headers.set_content_length (this.stop - this.start);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]