mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Merge pull request #1020 from frdfsnlght/master
Copy headers set in request handlers to main handler
This commit is contained in:
commit
cf08070ff7
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user