rygel r678 - trunk/src/rygel



Author: zeeshanak
Date: Sun Mar 15 19:02:49 2009
New Revision: 678
URL: http://svn.gnome.org/viewvc/rygel?rev=678&view=rev

Log:
Set the correct mimetype on transcode URI request.

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	Sun Mar 15 19:02:49 2009
@@ -148,7 +148,10 @@
     }
 
     private void add_item_headers () {
-        if (this.item.mime_type != null) {
+        if (this.transcode_target != null) {
+            this.msg.response_headers.append ("Content-Type",
+                                              this.transcode_target);
+        } else if (this.item.mime_type != null) {
             this.msg.response_headers.append ("Content-Type",
                                               this.item.mime_type);
         }



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