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:47:48 -0400 |
| commit | 8868a067e02b4fe9f1c669f06e90fc28171b9758 (patch) | |
| tree | 9651b0874b67ad0a8bece2ce934738129f0a23ee /docs/ref | |
| parent | b1462e0a36bc6bb2c221bda107da74a6381b9675 (diff) | |
[1.4.X] Fixed #19006 - Quoted filenames in Content-Disposition header.
Backport of 234ca6c61d from master
Diffstat (limited to 'docs/ref')
| -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 f0ee7fff16..1585981733 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -587,7 +587,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. |
