rygel r631 - trunk/src/rygel



Author: zeeshanak
Date: Thu Feb 19 17:18:11 2009
New Revision: 631
URL: http://svn.gnome.org/viewvc/rygel?rev=631&view=rev

Log:
Use libsoup API to set "ContentLength" header.

Modified:
   trunk/src/rygel/rygel-http-request.vala

Modified: trunk/src/rygel/rygel-http-request.vala
==============================================================================
--- trunk/src/rygel/rygel-http-request.vala	(original)
+++ trunk/src/rygel/rygel-http-request.vala	Thu Feb 19 17:18:11 2009
@@ -152,8 +152,7 @@
         }
 
         if (this.item.size >= 0) {
-            this.msg.response_headers.append ("Content-Length",
-                                              this.item.size.to_string ());
+            this.msg.response_headers.set_content_length (this.item.size);
         }
 
         if (this.item.size > 0) {



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