|
@@ -256,7 +256,7 @@ def entity_iptables(request, pk):
|
|
|
# content.
|
|
|
entity = get_object_or_404(Entity, pk=pk)
|
|
|
content = generate_entity_iptables(entity)
|
|
|
response = HttpResponse(content, mimetype='text/plain')
|
|
|
response = HttpResponse(content, content_type='text/plain')
|
|
|
|
|
|
# Add the Content-Disposition information for the browser, telling the
|
|
|
# browser to download the file with suggested filename.
|
|
@@ -299,7 +299,7 @@ def project_iptables(request, project_id
|
|
|
|
|
|
# Create the response object, setting the mime type so browser could offer
|
|
|
# to open the file with program as well.
|
|
|
response = HttpResponse(mimetype='application/zip')
|
|
|
response = HttpResponse(content_type='application/zip')
|
|
|
|
|
|
# If specific location was specified, get the entities that are part of that
|
|
|
# project location only, otherwise fetch all of the project's entities. Also
|
|
@@ -1005,7 +1005,7 @@ def project_diagram(request, pk):
|
|
|
content = generate_project_diagram(project).create_svg()
|
|
|
|
|
|
# Set the mime type.
|
|
|
response = HttpResponse(content, mimetype='image/svg+xml')
|
|
|
response = HttpResponse(content, content_type='image/svg+xml')
|
|
|
|
|
|
# Return the response object.
|
|
|
return response
|
|
@@ -1129,7 +1129,7 @@ class APISearchView(MultiplePermissionsR
|
|
|
|
|
|
# Generate the JSON response.
|
|
|
content = json.dumps(items)
|
|
|
response = HttpResponse(content, mimetype="application/json")
|
|
|
response = HttpResponse(content, content_type="application/json")
|
|
|
|
|
|
# Return the response.
|
|
|
return response
|