diff --git a/boards/views/sync.py b/boards/views/sync.py --- a/boards/views/sync.py +++ b/boards/views/sync.py @@ -1,5 +1,4 @@ import xml.etree.ElementTree as et -import xml.dom.minidom from django.http import HttpResponse, Http404 from boards.models import GlobalId, Post @@ -50,13 +49,7 @@ def get_post_sync_data(request, post_id) xml_str = SyncManager.generate_response_get([post]) - xml_repr = xml.dom.minidom.parseString(xml_str) - xml_repr = xml_repr.toprettyxml() - - content = '=Global ID=\n%s\n\n=XML=\n%s' \ - % (post.global_id, xml_repr) - return HttpResponse( - content_type='text/plain; charset=utf-8', - content=content, - ) \ No newline at end of file + content_type='text/xml; charset=utf-8', + content=xml_str, + )