[rygel] core: Set DLNA transferMode header on responses
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] core: Set DLNA transferMode header on responses
- Date: Wed, 2 Sep 2009 23:24:29 +0000 (UTC)
commit e3d4c12c3902e154e2c660d12e6761704a44da49
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Sep 3 02:17:26 2009 +0300
core: Set DLNA transferMode header on responses
Warning: We only copy the value from the request and all we do to
entertain this header is to set the priority of IO operations.
src/rygel/rygel-http-request-handler.vala | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-http-request-handler.vala b/src/rygel/rygel-http-request-handler.vala
index 2e6d86e..8cb6b84 100644
--- a/src/rygel/rygel-http-request-handler.vala
+++ b/src/rygel/rygel-http-request-handler.vala
@@ -30,6 +30,14 @@ internal abstract class Rygel.HTTPRequestHandler: GLib.Object {
// Add response headers.
public virtual void add_response_headers (HTTPRequest request)
throws HTTPRequestError {
+ var mode = request.msg.request_headers.get ("transferMode.dlna.org");
+ if (mode != null) {
+ // FIXME: Is it OK to just copy the value of this header from
+ // request to response? All we do to entertain this header is to
+ // set the priority of IO operations.
+ request.msg.response_headers.append ("transferMode.dlna.org", mode);
+ }
+
// Yes, I know this is not the ideal code to just get a specific
// string for an HTTP header but if you think you can come-up with
// something better, be my guest and provide a patch.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]