[rygel] core: Minor refactor



commit a92c63dc484805ab9b5734e1401dd79e65b7e2f8
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Mar 23 14:22:27 2010 +0200

    core: Minor refactor

 src/rygel/rygel-http-byte-seek.vala |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/rygel/rygel-http-byte-seek.vala b/src/rygel/rygel-http-byte-seek.vala
index 1e80b9e..fab01ba 100644
--- a/src/rygel/rygel-http-byte-seek.vala
+++ b/src/rygel/rygel-http-byte-seek.vala
@@ -86,14 +86,15 @@ internal class Rygel.HTTPByteSeek : Rygel.HTTPSeek {
     public override void add_response_headers () {
         // Content-Range: bytes START_BYTE-STOP_BYTE/TOTAL_LENGTH
         var range = "bytes ";
+        unowned Soup.MessageHeaders headers = this.msg.response_headers;
 
-        this.msg.response_headers.append ("Accept-Ranges", "bytes");
+        headers.append ("Accept-Ranges", "bytes");
 
         range += this.start.to_string () + "-" +
                  this.stop.to_string () + "/" +
                  this.length.to_string ();
-        this.msg.response_headers.append ("Content-Range", range);
+        headers.append ("Content-Range", range);
 
-        this.msg.response_headers.set_content_length (this.stop - this.start);
+        headers.set_content_length (this.stop - this.start);
     }
 }



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