set content type before returning.

def mp3():
    import gluon.contenttype
    response.headers['Content-Type'] = gluon.contenttype.contenttype('.xml')
    rows = db().select(db.audio.ALL)
    from gluon.serializers import xml
    xmlrows = xml(rows)
    return dict(xmlrows = xmlrows)

Reply via email to