Skip to content

Commit

Permalink
feat; timeout去除
Browse files Browse the repository at this point in the history
  • Loading branch information
xieqizhuo committed Sep 30, 2024
1 parent a00652f commit 9bf7dd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/CppRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ def __init__(self, headers=None, cookies_config_path=""):

def get(self, url, data=None):
self.headers["cookie"] = self.cookieManager.get_cookies_str()
response = self.session.get(url, data=data, headers=self.headers, timeout=1)
response = self.session.get(url, data=data, headers=self.headers)
response.raise_for_status()
return response

def post(self, url, data=None):
self.headers["cookie"] = self.cookieManager.get_cookies_str()
response = self.session.post(url, data=data, headers=self.headers, timeout=1)
response = self.session.post(url, data=data, headers=self.headers)
response.raise_for_status()
return response

Expand Down

0 comments on commit 9bf7dd6

Please sign in to comment.