Revision 176894c1 kamaki/clients/http.py

b/kamaki/clients/http.py
62 62
        return token
63 63
    
64 64
    def raw_http_cmd(self, method, path, body=None, headers=None, success=200,
65
                     json_reply=False):
65
                     json_reply=False, skip_read=False):
66 66
        p = urlparse(self.url)
67 67
        path = p.path + path
68 68
        if p.scheme == 'http':
......
89 89
        conn.request(method, path, body, headers)
90 90
        
91 91
        resp = conn.getresponse()
92
        reply = resp.read()
92
        reply = '' if skip_read else resp.read()
93 93
        
94 94
        log.debug('<' * 50)
95 95
        log.info('%d %s', resp.status, resp.reason)

Also available in: Unified diff