If receiving a Companion request, reply with a code 200 xml
This commit is contained in:
parent
4d3e36fbdb
commit
492e235a53
1 changed files with 4 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue