Switch back to send_file and add a bit of gzip buffering

This commit is contained in:
Joseph Schorr 2014-09-16 14:20:42 -04:00
parent 9344839295
commit 5cca609c55
2 changed files with 15 additions and 10 deletions

View file

@ -58,9 +58,6 @@ def get_squashed_tag(namespace, repository, tag, headers):
yield current_image_stream
stream = GzipWrap(StreamLayerMerger(get_next_layer).get_generator())
return app.response_class(wrap_file(request.environ, stream, 1024 * 16),
mimetype='application/octet-stream',
direct_passthrough=True)
return send_file(stream)
abort(403)