Fix issue #11 in the pecan adapter

This commit is contained in:
Christophe de Vienne
2013-08-02 14:04:43 +02:00
parent 8b235ef79a
commit f9fe028eff
2 changed files with 6 additions and 1 deletions

View File

@@ -86,6 +86,11 @@ def wsexpose(*args, **kwargs):
pecan.response.status = 500
return data
if funcdef.return_type is None:
pecan.request.pecan['content_type'] = None
pecan.response.content_type = None
return ''
return dict(
datatype=funcdef.return_type,
result=result