core: Explicitly set encoding on Soup.Message
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Wed, 30 Mar 2011 15:18:12 +0000 (18:18 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Wed, 30 Mar 2011 16:17:24 +0000 (19:17 +0300)
src/rygel/rygel-http-seekable-response.vala

index 9438272..0f65e07 100644 (file)
@@ -62,6 +62,8 @@ internal class Rygel.HTTPSeekableResponse : Rygel.HTTPResponse {
 
         base (request, request_handler, partial);
 
+        this.msg.response_headers.set_encoding (Soup.Encoding.CONTENT_LENGTH);
+
         this.seek = request.seek;
         this.total_length = (size_t) this.seek.length;