mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 07:19:25 -05:00
MinimalController: str has no attribute append
MinimalController calls set_content_type(), which in some cases references c.response_wrappers. However, MinimalController was not setting c.response_wrappers to a list, which caused an error.
This commit is contained in:
@@ -589,7 +589,7 @@ class MinimalController(BaseController):
|
||||
return c.response
|
||||
|
||||
def pre(self):
|
||||
|
||||
c.response_wrappers = []
|
||||
c.start_time = datetime.now(g.tz)
|
||||
g.reset_caches()
|
||||
|
||||
@@ -817,7 +817,6 @@ class RedditController(MinimalController):
|
||||
c.cookies[g.admin_cookie] = Cookie(value='', expires=DELETE)
|
||||
|
||||
def pre(self):
|
||||
c.response_wrappers = []
|
||||
MinimalController.pre(self)
|
||||
|
||||
set_cnameframe()
|
||||
|
||||
Reference in New Issue
Block a user