removed header
This commit is contained in:
parent
a4ca6910fa
commit
2eed8b620c
1 changed files with 1 additions and 3 deletions
|
|
@ -187,9 +187,7 @@ class SparkWallet(Wallet):
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
async with httpx.AsyncClient(
|
async with httpx.AsyncClient(timeout=None) as client:
|
||||||
timeout=None, headers=self.token
|
|
||||||
) as client:
|
|
||||||
async with client.stream("GET", url) as r:
|
async with client.stream("GET", url) as r:
|
||||||
async for line in r.aiter_lines():
|
async for line in r.aiter_lines():
|
||||||
if line.startswith("data:"):
|
if line.startswith("data:"):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue