提供RSS提要的Python媒体错误

时间:2016-04-29 04:05:56

标签: python xml apache rss

Centos 6,Python 3.4并提供Bottle。

Feed验证但“不应使用”text / html“媒体类型”提供Feed。

不会自动输出.xml文件类型和application / rss + xml吗?

Feed http://pythom.com/api/rss.xml

TNX 汤姆

1 个答案:

答案 0 :(得分:0)

需要在def。

中添加标题信息

bottle.response.headers [' Content-Type'] =' application / rss + xml'

现在验证。

相关问题