Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1 CGI headers not sent.

closed-fixed
nobody
None
5
2002-06-30
2002-06-30
Anonymous
No

The following patch was needed to get the
`Direct CGI Apache configuration' working
(spyce-1.1.10):

--- spyceCmd.py.orig Sun Jun 30 05:16:09 2002
+++ spyceCmd.py Sun Jun 30 05:30:39 2002
@@ -88,9 +88,9 @@
self.out.clear()
def sendHeaders(self):
if self.cgimode and not self.headersSent:
- self.headersSent = 1
if not self.CT:
self.setContentType('text/html')
+ self.headersSent = 1
self.origout.write('Content-type: %s\n' % self.CT)
for h in self.headers:
self.origout.write('%s: %s\n', h)
@@ -107,6 +107,7 @@
else:
self.headers.append((type, data))
def flush(self):
+ self.sendHeaders()
self.out.flush()
def unbuffer(self):
self.out.unbuffer()

Discussion

  • batripler
    batripler
    2002-06-30

    Logged In: YES
    user_id=371556

    Thanks for spotting this... This bug and a whole slew of
    other CGI bugs are addressed in v1.1.11 that has just been
    released.

     
  • batripler
    batripler
    2002-06-30

    • status: open --> closed-fixed