|
@@ -77,7 +77,7 @@ class orthancInterface:
|
|
except urllib3.exceptions.HTTPError as e:
|
|
except urllib3.exceptions.HTTPError as e:
|
|
print(e)
|
|
print(e)
|
|
|
|
|
|
- def put(self,url,data,dataType='octet-stream'):
|
|
|
|
|
|
+ def put(self,url,data,dataType='octet-stream',timeout=None):
|
|
|
|
|
|
debug=False
|
|
debug=False
|
|
|
|
|
|
@@ -91,7 +91,7 @@ class orthancInterface:
|
|
#headers["Cookie"]=self.cookie
|
|
#headers["Cookie"]=self.cookie
|
|
|
|
|
|
try:
|
|
try:
|
|
- return self.http.request('PUT',url,headers=headers,body=data)
|
|
|
|
|
|
+ return self.http.request('PUT',url,headers=headers,body=data,timeout=timeout)
|
|
#f contains json as a return value
|
|
#f contains json as a return value
|
|
except urllib3.exceptions.HTTPError as e:
|
|
except urllib3.exceptions.HTTPError as e:
|
|
print(e)
|
|
print(e)
|