Browse Source

修复附件数据处理异常Failed to establish a new connection

luojiehua 1 year ago
parent
commit
3dad0fe4a4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      BaseDataMaintenance/dataSource/interface.py

+ 1 - 1
BaseDataMaintenance/dataSource/interface.py

@@ -34,7 +34,7 @@ def getAttachDealInterface(_data,_type,path="",restry=1,kwargs={},url=interface_
                         "type":_type}
             if len(kwargs.keys())>0:
                 _json.update(kwargs)
-            headers = {"Content-Type":"application/json","Connection":"close"}
+            headers = {"Content-Type":"application/json"}
             with requests.Session() as session:
                 _resp = session.post(url,data=_json,timeout=timeout,headers=headers)