diff roundup/cgi/actions.py @ 2593:9e1c4c932323 maint-0.7

merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Tue, 20 Jul 2004 02:10:43 +0000
parents b48fcae8b2ad
children d3a8613fd8c3
line wrap: on
line diff
--- a/roundup/cgi/actions.py	Tue Jul 20 00:23:14 2004 +0000
+++ b/roundup/cgi/actions.py	Tue Jul 20 02:10:43 2004 +0000
@@ -1,4 +1,4 @@
-#$Id: actions.py,v 1.27.2.3 2004-05-28 01:03:53 richard Exp $
+#$Id: actions.py,v 1.27.2.4 2004-07-20 02:10:43 richard Exp $
 
 import re, cgi, StringIO, urllib, Cookie, time, random
 
@@ -859,7 +859,13 @@
         h['Content-Type'] = 'text/csv'
         # some browsers will honor the filename here...
         h['Content-Disposition'] = 'inline; filename=query.csv'
+
         self.client.header()
+
+        if self.client.env['REQUEST_METHOD'] == 'HEAD':
+            # all done, return a dummy string
+            return 'dummy'
+
         writer = rcsv.writer(self.client.request.wfile)
         writer.writerow(columns)
 

Roundup Issue Tracker: http://roundup-tracker.org/