Re: [Karrigell-main] Karrigell 2.0beta Content-Type bug ?
Brought to you by:
quentel
From: Pierre Q. <que...@wa...> - 2004-02-19 21:18:12
|
Hi Gabriele, Nice reading a message from you, the first subscriber to this mailing list ! Yes, there is a bug... The content-type is returned by a call to guess_type on line 190, but the Content-Type response header is not set accordingly. Adding this line just after line 190 : self.RESPONSE['Content-Type']=self.ctype should solve the problem guess_type() is defined in SimpleHTTPServer.SimpleHTTPRequestHandler, it uses a dictionary called extensions_map, which can be completed in the configuration file Thanks, Pierre |