From 9d6d95eb63f7e2adefedbc67559ac3c11e3b4eb6 Mon Sep 17 00:00:00 2001 From: BernhardKoschicek Date: Mon, 25 Sep 2023 17:55:15 +0200 Subject: [PATCH] try with gzip --- openatlas/views/file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openatlas/views/file.py b/openatlas/views/file.py index 4ebc7924d..933ea9ae3 100644 --- a/openatlas/views/file.py +++ b/openatlas/views/file.py @@ -168,10 +168,10 @@ def getManifest(id_): @cross_origin() def iiif_manifest(id_: int): content = gzip.compress(json.dumps(getManifest(id_)).encode('utf8'), 5) - response = jsonify(content) + response = Response(content) response.headers['Content-length'] = len(content) response.headers['Content-Encoding'] = 'gzip' - return response + return jsonify(getManifest(id_)) @app.route('/iiif/', methods=['GET'])