[rygel] tests: Set content-length on msg for SeekableResponse



commit 2773190c0706012268ff8cb45205da1391e707e2
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Mar 30 18:11:48 2011 +0300

    tests: Set content-length on msg for SeekableResponse

 tests/rygel-http-seekable-response-test.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/rygel-http-seekable-response-test.vala b/tests/rygel-http-seekable-response-test.vala
index a9d9902..1e4eac9 100644
--- a/tests/rygel-http-seekable-response-test.vala
+++ b/tests/rygel-http-seekable-response-test.vala
@@ -99,6 +99,8 @@ public class Rygel.HTTPSeekableResponseTest : Rygel.HTTPResponseTest {
                                    this.cancellable);
         var handler = new HTTPGetHandler (this.cancellable);
 
+        msg.response_headers.set_content_length (seek.length);
+
         return new HTTPSeekableResponse (request, handler);
     }
 }



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