Revision 03493855 kamaki/clients/compute_rest_api.py
b/kamaki/clients/compute_rest_api.py | ||
---|---|---|
92 | 92 |
:returns: request response |
93 | 93 |
""" |
94 | 94 |
data = json_data |
95 |
if json_data is not None:
|
|
95 |
if json_data: |
|
96 | 96 |
data = json.dumps(json_data) |
97 | 97 |
self.set_header('Content-Type', 'application/json') |
98 | 98 |
self.set_header('Content-Length', len(data)) |
Also available in: Unified diff