[Twisted-web] Setting the twcgi header?

Alex Newby alex at alexnewby.com
Sun Jul 11 12:00:02 MDT 2004

class PythonCGI(twcgi.FilteredScript):
        filter = '/usr/local/bin/python'

I wish to set the following header for my PythonCGI:

print "Content-type: application/x-shockwave-flash\n\n"

But, instead the script renders:

Connection: close
Content-type: text/html
Server: TwistedWeb/1.3.0rc1

How do I change the header?

Alex Newby 
E-mail: alex at alexnewby.com
Website: http://www.alexnewby.com

More information about the Twisted-web mailing list