Mercurial > kallithea
changeset 4688:0e82346ae7ae
Fix for zip file downloads, not being valid zips (Issue #35)
author | Matt Fellows <kallithea@matt-fellows.me.uk> |
---|---|
date | Thu, 27 Nov 2014 14:28:59 +0000 |
parents | 0a45511d1003 |
children | ed4a3c0fe61a |
files | kallithea/controllers/files.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/controllers/files.py Thu Nov 20 09:59:21 2014 +0100 +++ b/kallithea/controllers/files.py Thu Nov 27 14:28:59 2014 +0000 @@ -569,6 +569,7 @@ temp_stream = open(archive, 'wb') log.debug('Creating new temp archive in %s' % archive) cs.fill_archive(stream=temp_stream, kind=fileformat, subrepos=subrepos) + temp_stream.close() if not subrepos and archive_cache_enabled: #if we generated the archive and use cache rename that log.debug('Storing new archive in %s' % cached_archive_path)