nanterre: QFEditerCarte renvoie un header x-error-code:1 en cas de panne (#19052)

This commit is contained in:
Thomas NOËL 2017-09-29 01:49:18 +02:00
parent f5a15134cb
commit 0c9b76f6ca
1 changed files with 1 additions and 1 deletions

View File

@ -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())