Skip to content
Snippets Groups Projects
Commit 37ba19ec authored by Thomas Bock's avatar Thomas Bock :speech_balloon:
Browse files

resolves issue #1

parent fe95ee98
Branches
Tags 0.5.3
No related merge requests found
......@@ -54,7 +54,7 @@ def validate():
xsd_str = utils.get_xsd(config, from_server=False)
ret = utils.validate(xml_str=xml_str, xsd_str=xsd_str)
else:
ret = utils.return_error(error='unvalid xml data')
ret = utils.return_error(error='invalid xml data')
return utils.xml_response(ret)
......
......@@ -70,10 +70,10 @@ def xml_response(xml_str):
return Response(xml_str, content_type='text/xml; charset=utf-8')
def return_ok():
return '<ok/>'
return '<ok/>\n'
def return_error(error):
return '<error>{error}</error>'.format(error=error)
return '<error>{error}</error>\n'.format(error=error)
def return_version(version):
return '<version>{version}</version>'.format(version=version)
\ No newline at end of file
return '<version>{version}</version>\n'.format(version=version)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment