From 7827f130d9d75fe27124bbd0a524cc0a306bb6db Mon Sep 17 00:00:00 2001 From: Xavier Fiechter Date: Mon, 13 Feb 2023 01:51:28 +0100 Subject: [PATCH] . --- exporter/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/views.py b/exporter/views.py index 5dc32a0..ab836a2 100644 --- a/exporter/views.py +++ b/exporter/views.py @@ -17,6 +17,6 @@ def stream_labels_as_jsonl(request, labelbase_id): yield json.dumps(item) + '\n' # Return the data as a streaming response - response = StreamingHttpResponse(generator(), content_type='application/json') + response = StreamingHttpResponse(generator(), content_type='application/jsonl') response['Content-Disposition'] = 'attachment; filename="labelbase-{}.jsonl"'.format(labelbase_id) return response