Changeset 6990 for django/branches/gis/django/views/static.py
- Timestamp:
- 01/02/08 10:57:53 (1 year ago)
- Files:
-
- django/branches/gis (modified) (1 prop)
- django/branches/gis/django/views/static.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/gis
- Property svnmerge-integrated changed from /django/trunk:1-6919 to /django/trunk:1-6989
django/branches/gis/django/views/static.py
r6815 r6990 60 60 statobj[stat.ST_MTIME], statobj[stat.ST_SIZE]): 61 61 return HttpResponseNotModified() 62 mimetype = mimetypes.guess_type(fullpath)[0] 62 mimetype = mimetypes.guess_type(fullpath)[0] or 'application/octet-stream' 63 63 contents = open(fullpath, 'rb').read() 64 64 response = HttpResponse(contents, mimetype=mimetype) 65 65 response["Last-Modified"] = http_date(statobj[stat.ST_MTIME]) 66 response["Content-Length"] = len(contents) 66 67 return response 67 68
