From a23696d0478e6a8b5c13a9be66eecaf7854340fc Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 2 Jul 2021 18:02:10 +0200 Subject: [PATCH] jsoncell: do not traceback if content-type is absent (#55360) --- combo/public/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combo/public/views.py b/combo/public/views.py index 4797ff8f..12031b57 100644 --- a/combo/public/views.py +++ b/combo/public/views.py @@ -146,7 +146,7 @@ def ajax_page_cell(request, page_pk, cell_reference): if action_response: response = HttpResponse( - action_response.content, content_type=action_response.headers['Content-Type'] + action_response.content, content_type=action_response.headers.get('Content-Type') ) if 'Content-Disposition' in action_response.headers: response['Content-Disposition'] = action_response.headers['Content-Disposition']