Update requests.py

This commit is contained in:
恍兮惚兮 2024-03-05 04:40:45 +08:00
parent 573823fd61
commit a542f6d5dc
2 changed files with 1 additions and 2 deletions

View File

@ -178,7 +178,7 @@ class Session(Sessionbase):
while True:
_headerb=headerqueue.get()
if _headerb is None:
break
self.raise_for_status()
headerb+=_headerb
if _headerb==b'\r\n':
break

View File

@ -103,7 +103,6 @@ class ResponseBase:
if pending is not None:
yield pending
print(size)
class Sessionbase:
def __init__(self) -> None:
self.UA='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'