Changing Content-Type to be RSS2.0 compliant
This commit is contained in:
parent
620f4c3d20
commit
4555518112
|
@ -64,7 +64,7 @@ class RSSVoDServer(webapp2.RequestHandler):
|
||||||
channel_json = self.fetch_vods(channel_id)
|
channel_json = self.fetch_vods(channel_id)
|
||||||
decoded_json = json.loads(channel_json)
|
decoded_json = json.loads(channel_json)
|
||||||
rss_data = self.construct_rss(channel, decoded_json, channel_display_name)
|
rss_data = self.construct_rss(channel, decoded_json, channel_display_name)
|
||||||
self.response.headers['Content-Type'] = 'application/xhtml+xml'
|
self.response.headers['Content-Type'] = 'application/rss+xml'
|
||||||
self.response.write(rss_data)
|
self.response.write(rss_data)
|
||||||
|
|
||||||
def head(self,channel):
|
def head(self,channel):
|
||||||
|
|
Loading…
Reference in New Issue