From 658b8ce0bdd2492d4b565de065a80daf95f76436 Mon Sep 17 00:00:00 2001 From: Keith Mitchell Date: Mon, 29 Oct 2012 10:10:42 -0700 Subject: [PATCH] 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. --- r2/r2/controllers/reddit_base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/r2/r2/controllers/reddit_base.py b/r2/r2/controllers/reddit_base.py index 3d924096e..ecf413c43 100644 --- a/r2/r2/controllers/reddit_base.py +++ b/r2/r2/controllers/reddit_base.py @@ -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()