diff Flag.inc @ 91:1d4c980f4255

Change the way headers are set. Disabled validation for non-html pages.
author Tom Fredrik "BFG" Klaussen <bfg@blenning.no>
date Thu, 18 Oct 2012 00:28:48 +0200
parents b9654b9c4a66
children f468365813c9
line wrap: on
line diff
--- a/Flag.inc	Wed Oct 17 21:23:02 2012 +0200
+++ b/Flag.inc	Thu Oct 18 00:28:48 2012 +0200
@@ -66,6 +66,12 @@
     return false;
   }
 
+  function mayValidate()
+  {
+    return false;
+  }
+
+
   /**
    * Produce the actual content
    */
@@ -79,7 +85,7 @@
     }
     else {
       $flag = new PageContent($flag);
-      $flag->addHeader("Content-Type: image/png");
+      $flag->setHeader('Content-Type', 'image/png');
       return $flag;
     }
   }