[Xfce4-commits] <xfce-buildbot-scripts:master> Fix output if the layout cookie was set

Enrico Tröger noreply at xfce.org
Mon Oct 12 20:20:01 CEST 2009


Updating branch refs/heads/master
         to bae8f92471969e67837809539cb33145fe3fdf56 (commit)
       from 6c3d5f6a08b358cb54ab50eda63c3ce639b0c698 (commit)

commit bae8f92471969e67837809539cb33145fe3fdf56
Author: Enrico Tröger <enrico.troeger at uvena.de>
Date:   Mon Oct 12 20:19:13 2009 +0200

    Fix output if the layout cookie was set

 xfcebuildstatus.py |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/xfcebuildstatus.py b/xfcebuildstatus.py
index 63a8c00..2f9c394 100644
--- a/xfcebuildstatus.py
+++ b/xfcebuildstatus.py
@@ -561,7 +561,7 @@ def get_layout(fs, env, headers):
 
 #----------------------------------------------------------------------
 def main():
-    headers = []
+    headers = [ 'Content-type: text/html' ]
 
     # parse query string
     fs = FieldStorage(keep_blank_values=True)
@@ -587,11 +587,8 @@ def main():
         status = get_build_status(XMLRPC_URL)
         get_build_status_html(html, url, status)
 
-    if not headers:
-        print 'Content-type: text/html'
-    else:
-        for h in headers:
-            print h
+    for h in headers:
+        print h
     print # final blank line to end HTTP headers
 
     print str(html)



More information about the Xfce4-commits mailing list