Add support for HEAD

This commit is contained in:
Laszlo Zeke 2017-01-21 21:35:22 +01:00
parent cbb5c654c5
commit 34de0cb7e5
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,9 @@ class RSSVoDServer(webapp2.RequestHandler):
self.response.headers['Content-Type'] = 'application/xhtml+xml' self.response.headers['Content-Type'] = 'application/xhtml+xml'
self.response.write(rss_data) self.response.write(rss_data)
def head(self,channel):
self.get(channel)
def fetch_userid(self, channel_name): def fetch_userid(self, channel_name):
return self.fetch_or_cache_object(channel_name, USERIDCACHE_PREFIX, USERID_URL_TEMPLATE, USERIDCACHE_LIFETIME) return self.fetch_or_cache_object(channel_name, USERIDCACHE_PREFIX, USERID_URL_TEMPLATE, USERIDCACHE_LIFETIME)