core: Set all headers in RygelHTTPGet
authorJens Georg <mail@jensge.org>
Tue, 22 Nov 2011 21:21:39 +0000 (22:21 +0100)
committerJens Georg <mail@jensge.org>
Tue, 22 Nov 2011 21:31:27 +0000 (22:31 +0100)
commit91acb085f01b4258bc7ce750c6dfe4b8d01cdfef
tree94d070cdef9ac61647fb20f623b2f7d40550aeeb
parenta258ac8229ff8a123c60cfed357997a3960f3df1
core: Set all headers in RygelHTTPGet

Don't set Content-Length header in HEAD request for transcoded
resources. This was previously caused by the message encoding being
set to CONTENT_LENGTH by default. Moving the code sets the encoding
to EOF causing libsoup to not set the Content-Length header.

Also adds a proper Range header for byte-seek HEAD requests.

This fixes the random fails of test-case 7.4.28.2,3,4,6
src/rygel/rygel-http-get.vala
src/rygel/rygel-http-response.vala