Merge pull request #1020 from frdfsnlght/master

Copy headers set in request handlers to main handler
This commit is contained in:
echel0n 2014-12-04 17:46:23 -08:00
commit cf08070ff7
1 changed files with 3 additions and 1 deletions

View File

@ -235,7 +235,9 @@ class MainHandler(RequestHandler):
func = getattr(klass, 'index', None)
if callable(func):
return func(**args)
out = func(**args)
self._headers = klass._headers
return out
raise HTTPError(404)