Fixed dictionary merging.

Added api into privet/info response. 

NOTRY=true

Review URL: https://codereview.chromium.org/296303002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272556 0039d316-1c4b-4281-b951-d872f2087c98
parent 440fd82e
......@@ -12,6 +12,7 @@
sudo apt-get install python-tornado
sudo apt-get install python-pip
sudo pip install google-api-python-client
sudo pip install ecdsa
"""
import atexit
......@@ -743,7 +744,10 @@ class WebRequestHandler(WifiHandler.Delegate, CloudDevice.Delegate):
@post_provisioning
@get_only
def do_info(self, request, unused_response_func):
specific_info = {'x-privet-token': 'sample'}
specific_info = {
'x-privet-token': 'sample',
'api': sorted(self.handlers.keys())
}
info = dict(self.get_common_info().items() + specific_info.items())
self.real_send_response(request, 200, info)
return True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment