Skip to content

Commit

Permalink
change how we handle the response
Browse files Browse the repository at this point in the history
  • Loading branch information
george-silva committed Apr 2, 2024
1 parent 335772a commit 6bb199c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/planscape/planning/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def download_shapefile(request: Request) -> Response:

output_zip_name = f"{str(scenario.uuid)}.zip"
export_to_shapefile(scenario)
response = Response(content_type="application/zip")
response = HttpResponse(content_type="application/zip")
zip_directory(response, scenario.get_shapefile_folder())

response["Content-Disposition"] = f"attachment; filename={output_zip_name}"
Expand Down

0 comments on commit 6bb199c

Please sign in to comment.