diff options
| author | Tim Graham <timograham@gmail.com> | 2012-10-03 14:43:36 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2012-10-03 17:44:56 -0400 |
| commit | 234ca6c61d27d1cd430a5290ff858c25afb93098 (patch) | |
| tree | 4311b26a157c118d2e49927fcf9c97dc2e65d231 /docs/ref/request-response.txt | |
| parent | 1c03b23567a3098b9ab5df64b14e0dea8d1414ea (diff) | |
Fixed #19006 - Quoted filenames in Content-Disposition header.
Diffstat (limited to 'docs/ref/request-response.txt')
| -rw-r--r-- | docs/ref/request-response.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index ff929014c0..e977e32d42 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -590,7 +590,7 @@ To tell the browser to treat the response as a file attachment, use the this is how you might return a Microsoft Excel spreadsheet:: >>> response = HttpResponse(my_data, content_type='application/vnd.ms-excel') - >>> response['Content-Disposition'] = 'attachment; filename=foo.xls' + >>> response['Content-Disposition'] = 'attachment; filename="foo.xls"' There's nothing Django-specific about the ``Content-Disposition`` header, but it's easy to forget the syntax, so we've included it here. |
