~andre-miras/ladon/ticket1307192-undefined-interface-soap-unit-test

« back to all changes in this revision

Viewing changes to frameworks/python/src/ladon/clients/jsonwsp.py

  • Committer: jakob at simon-gaarde
  • Date: 2013-11-07 10:30:11 UTC
  • Revision ID: jakob@simon-gaarde.dk-20131107103011-pb8zfqinnfcgye20
- Fixed issues with soap/xmlrpc protocols for Python 3
- Added internal logging on debug log-level of calls to ladonized methods

Show diffs side-by-side

added added

removed removed

Lines of Context:
298
298
                        conn = HTTPConnection(self.hostname,self.port)
299
299
                req_path = self.path + '/' + extra_path
300
300
                buffer_fp = open(buffer_fname,'rb')
301
 
                headers.update(extra_headers)
 
301
                if extra_headers!=None:
 
302
                        headers.update(extra_headers)
302
303
                conn.request("POST", req_path, buffer_fp, headers)
303
304
                buffer_fp.close()
304
305
                jsonwsp_response = self.parse_response(conn.getresponse())