less debug
This commit is contained in:
parent
936ed5b74f
commit
a6afdc1559
1 changed files with 2 additions and 2 deletions
|
@ -377,8 +377,8 @@ class API(object):
|
||||||
body = str(form)
|
body = str(form)
|
||||||
request.add_header('Content-type', form.get_content_type())
|
request.add_header('Content-type', form.get_content_type())
|
||||||
request.add_header('Content-length', len(body))
|
request.add_header('Content-length', len(body))
|
||||||
print 'content-length', len(body), type(body)
|
#print 'Content-length', len(body), type(body)
|
||||||
print 'Content-type', form.get_content_type()
|
#print 'Content-type', form.get_content_type()
|
||||||
request.add_data(body)
|
request.add_data(body)
|
||||||
result = self._opener.open(request).read().strip()
|
result = self._opener.open(request).read().strip()
|
||||||
return json.loads(result)
|
return json.loads(result)
|
||||||
|
|
Loading…
Reference in a new issue