Revision 40777cc8 tools/cloud

b/tools/cloud
11 11
DEFAULT_HOST = '127.0.0.1:8000'
12 12
DEFAULT_API = 'v1.1'
13 13

  
14
TOKEN = '46e427d657b20defe352804f0eb6f8a2'
15

  
14 16

  
15 17
commands = {}
16 18

  
......
67 69
        conn = HTTPConnection(self.host)
68 70

  
69 71
        kwargs = {}
72
        kwargs['headers'] = {'X-Auth-Token': TOKEN}
70 73
        if body:
71
            kwargs['headers'] = {'Content-Type': 'application/json'}
74
            kwargs['headers']['Content-Type'] = 'application/json'
72 75
            kwargs['body'] = body
73 76
        conn.request(method, path, **kwargs)
74 77

  

Also available in: Unified diff