mirror of
https://github.com/bugsink/bugsink.git
synced 2026-01-05 12:50:17 -06:00
Envelope is not actually json; let's reflect that in the filename
This commit is contained in:
@@ -585,5 +585,5 @@ class IngestEnvelopeAPIView(BaseIngestAPIView):
|
||||
def download_envelope(request, envelope_id=None):
|
||||
envelope = get_object_or_404(Envelope, pk=envelope_id)
|
||||
response = HttpResponse(envelope.data, content_type="application/x-sentry-envelope")
|
||||
response["Content-Disposition"] = f'attachment; filename="envelope-{envelope_id}.json"'
|
||||
response["Content-Disposition"] = f'attachment; filename="envelope-{envelope_id}.envelope"'
|
||||
return response
|
||||
|
||||
Reference in New Issue
Block a user