If receiving a Companion request, reply with a code 200 xml

This commit is contained in:
croneter 2021-10-18 09:41:00 +02:00
parent 4d3e36fbdb
commit 492e235a53

View file

@ -210,7 +210,10 @@ class MyHandler(BaseHTTPRequestHandler):
else:
# Throw it to companion.py
companion.process_command(request_path, params)
self.response('', clientinfo.getXArgsDeviceInfo(include_token=False))
headers = clientinfo.getXArgsDeviceInfo(include_token=False)
headers['Content-Type'] = 'text/xml'
self.response(XML_OK, headers)
self.response(v.COMPANION_OK_MESSAGE, headers)
class ThreadedHTTPServer(ThreadingMixIn, HTTPServer):