Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(49)

Unified Diff: codereview/views.py

Issue 6197071: Add an endpoint to download the binary content of a patch (Closed)
Patch Set: Remove cache directive Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « codereview/urls.py ('k') | codereview/views_chromium.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: codereview/views.py
===================================================================
--- a/codereview/views.py
+++ b/codereview/views.py
@@ -2401,7 +2401,7 @@
@image_required
def image(request):
- """/<issue>/content/<patchset>/<patch>/<content> - Return patch's content."""
+ """/<issue>/image/<patchset>/<patch>/<content> - Return patch's content."""
response = HttpResponse(request.content.data, content_type=request.mime_type)
filename = re.sub(
r'[^\w\.]', '_', request.patch.filename.encode('ascii', 'replace'))
« no previous file with comments | « codereview/urls.py ('k') | codereview/views_chromium.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b