HTTPFile has 'content_type' property. Allows HTTPDownloadView to proxy Content-Type header. Refs #116

This commit is contained in:
Benoît Bryon 2016-03-14 17:05:32 +01:00
parent 18fd9abcc8
commit 56214264f1

View file

@ -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']