[vmchecker-dev] bug: error shown when upload succeds

Lucian Adrian Grijincu lucian.grijincu at gmail.com
Fri Mar 26 19:38:14 EET 2010


On Fri, Mar 26, 2010 at 1:34 PM, Lucian Adrian Grijincu
<lucian.grijincu at gmail.com> wrote:
> I'll try to change text/plain to text/html and see what happens.

Yep.

Adding
    req.content_type = 'text/html'
to each service fixes it

For example, if your script looks like this right now:

def index(req, an_arg='default'):
    return some_html
it would become:

def index(req, an_arg='default'):
    req.content_type = 'text/html'
    return some_html

More info here:
http://stackoverflow.com/questions/347632/mod-python-publisher-always-gives-content-type-text-plain
-- 
 .
..: Lucian


More information about the vmchecker-dev mailing list