[rygel] core: Fix Content-Length header for partial requests



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]