146
146
last_modified = last_modified or data_cache.mtime()
148
148
httpdate_last_modified = timefuncs.formathttpdate(int(last_modified))
153
153
if content_disposition and filename:
154
154
# TODO: fix the encoding here, plain 8 bit is not allowed according to the RFCs
155
155
# There is no solution that is compatible to IE except stripping non-ascii chars
156
156
filename = filename.encode(config.charset)
159
159
meta_cache = caching.CacheEntry(request, cache_arena, key+'.meta', cache_scope, do_locking=do_locking, use_pickle=True)