mirror of
https://github.com/jazzband/django-downloadview.git
synced 2026-03-16 22:40:25 +00:00
HTTPFile has 'content_type' property. Allows HTTPDownloadView to proxy Content-Type header. Refs #116
This commit is contained in:
parent
18fd9abcc8
commit
56214264f1
1 changed files with 5 additions and 0 deletions
|
|
@ -256,3 +256,8 @@ class HTTPFile(File):
|
|||
|
||||
"""
|
||||
return self.request.headers['Content-Length']
|
||||
|
||||
@property
|
||||
def content_type(self):
|
||||
"""Return content type of the file (from original response)."""
|
||||
return self.request.headers['Content-Type']
|
||||
|
|
|
|||
Loading…
Reference in a new issue