Revision: 0a75a06a0bee
Author: Roger Tawa <
rog...@chromium.org>
Date: Thu May 10 09:31:27 2012
Log: Fix break in image download introduced by revision 9ab36a14429b
http://code.google.com/p/rietveld/source/detail?r=0a75a06a0bee
Modified:
/codereview/views.py
=======================================
--- /codereview/views.py Tue May 8 11:55:41 2012
+++ /codereview/views.py Thu May 10 09:31:27 2012
@@ -2289,7 +2289,7 @@
"""/<issue>/content/<patchset>/<patch>/<content> - Return patch's
content."""
response = HttpResponse(request.content.data,
content_type=request.mime_type)
filename = re.sub(
- r'[^\w\.]', '_', response.patch.filename.encode('ascii', 'replace'))
+ r'[^\w\.]', '_', request.patch.filename.encode('ascii', 'replace'))
response['Content-Disposition'] = 'attachment; filename="%s"' % filename
response['Cache-Control'] = 'no-cache, no-store'
return response