nanterre: QFEditerCarte renvoie un header x-error-code:1 en cas de panne (#19052)
This commit is contained in:
parent
f5a15134cb
commit
0c9b76f6ca
|
@ -1782,7 +1782,7 @@ class QFEditerCarte(IndividuViewMixin, APIView):
|
|||
return Response({
|
||||
'err': 1,
|
||||
'errors': [error],
|
||||
})
|
||||
}, headers={'x-error-code': '1'})
|
||||
response = HttpResponse(result, content_type='application/pdf')
|
||||
response['Content-Disposition'] = 'attachment; filename="qf-%s-%s.pdf"' % (
|
||||
id_qf, now().isoformat())
|
||||
|
|
Loading…
Reference in New Issue