mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 03:22:22 -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)
|
func = getattr(klass, 'index', None)
|
||||||
|
|
||||||
if callable(func):
|
if callable(func):
|
||||||
return func(**args)
|
out = func(**args)
|
||||||
|
self._headers = klass._headers
|
||||||
|
return out
|
||||||
|
|
||||||
raise HTTPError(404)
|
raise HTTPError(404)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user