[rygel] core: Use constant for 'transferMode' header
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Use constant for 'transferMode' header
- Date: Sat, 26 Mar 2011 14:05:55 +0000 (UTC)
commit 99b09c193649e66aa618cce402f567fffe5c82af
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Mar 23 23:22:54 2011 +0200
core: Use constant for 'transferMode' header
src/rygel/rygel-http-get-handler.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-http-get-handler.vala b/src/rygel/rygel-http-get-handler.vala
index 36a0191..503c0a6 100644
--- a/src/rygel/rygel-http-get-handler.vala
+++ b/src/rygel/rygel-http-get-handler.vala
@@ -28,12 +28,14 @@ using GUPnP;
* HTTP GET request handler interface.
*/
internal abstract class Rygel.HTTPGetHandler: GLib.Object {
+ private const string TRANSFER_MODE_HEADER = "transferMode.dlna.org";
+
public Cancellable cancellable { get; set; }
// Add response headers.
public virtual void add_response_headers (HTTPGet request)
throws HTTPRequestError {
- var mode = request.msg.request_headers.get_one ("transferMode.dlna.org");
+ var mode = request.msg.request_headers.get_one (TRANSFER_MODE_HEADER);
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]