#34194: Extract function for generating proper Content-Disposition headers
-----------------------------------------+------------------------
               Reporter:  Alex Vandiver  |          Owner:  nobody
                   Type:  New feature    |         Status:  new
              Component:  HTTP handling  |        Version:  dev
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 Applications may need to generate Content-Disposition headers, and it
 seems a waste to duplicate the logic that already exists in FileResponse.
 Uses for this include things like `django-sendfile2`
 (https://github.com/moggers87/django-
 
sendfile2/blob/a13039aabbba05e50631804118a4d99db4f99ad4/django_sendfile/utils.py#L108-L118)
 and similar.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34194>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070184ca2d4c5d-718ebfe6-9fcd-4ec9-b343-f13acefff6ba-000000%40eu-central-1.amazonses.com.

Reply via email to