mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
Update requests.py
This commit is contained in:
parent
573823fd61
commit
a542f6d5dc
@ -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
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user