Re: empty content-type
will guaraldi <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
That's fine with me. I applied the change to my codebase and barring any complaints over the next few days, I can commit it to the codebase in CVS. /will On Thu, 8 Jan 2004, gabor wrote: > > hi, > > i'm using pyblosxom in a quite specialized way..(i'm generating only a <div> > with it, not a full html page). > > for that i need him not to generate the content-type header. > > so i made a small change, and i think it should also be included in pyblosxom. > > if the content_type.flavour file is empty, then don't output the content-type > header. > > i did this: > > Pyblosxom/renderers/blosxom.py, line 213: > before: > if self._needs_content_type: > after: > if self._needs_content_type and data['content-type'] !="": > > what do you think? > > gabor > -- whatever it is, you can find it at http://www.bluesock.org/~willg/ except Will--you can only see him in real life. ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html