[rygel] core: Correct condition for applying XBox hacks



commit 2c429573793d32ddc27837510aea3090c2a026d5
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Mar 14 16:32:02 2011 +0200

    core: Correct condition for applying XBox hacks
    
    This broke in commit 905c9e8.

 src/rygel/rygel-xbox-hacks.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-xbox-hacks.vala b/src/rygel/rygel-xbox-hacks.vala
index 697da0a..ac925df 100644
--- a/src/rygel/rygel-xbox-hacks.vala
+++ b/src/rygel/rygel-xbox-hacks.vala
@@ -39,8 +39,8 @@ internal class Rygel.XBoxHacks : GLib.Object {
     public XBoxHacks.for_action (ServiceAction action) throws XBoxHacksError {
         unowned MessageHeaders headers = action.get_message ().request_headers;
         var agent = headers.get_one ("User-Agent");
-        if (!(agent.contains ("Xbox") &&
-              agent.contains ("Allegro-Software-WebClient"))) {
+        if (!(agent.contains ("Xbox")) &&
+            !(agent.contains ("Allegro-Software-WebClient"))) {
             throw new XBoxHacksError.NA (_("Not Applicable"));
         }
     }



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