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:
Keith Mitchell
2012-10-29 10:10:42 -07:00
parent 3fe8471c5c
commit 658b8ce0bd

View File

@@ -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()