Fixed content type

This commit is contained in:
A B
2025-02-23 20:19:26 +00:00
parent e3682fd121
commit d9bf110ba9

View File

@ -42,4 +42,4 @@ def shadowsocks(request, link):
AccessLog.objects.create(user=acl.user, server=acl.server.name, action="Success", data=json.dumps(config, indent=2)) AccessLog.objects.create(user=acl.user, server=acl.server.name, action="Success", data=json.dumps(config, indent=2))
yaml_data = yaml.dump(config, allow_unicode=True) yaml_data = yaml.dump(config, allow_unicode=True)
return HttpResponse(yaml_data, content_type="application/x-yaml") return HttpResponse(yaml_data, content_type="text/html")