Add http sent event client
This commit is contained in:
parent
7676f957c5
commit
bb70ce7057
|
@ -5,7 +5,6 @@ import json
|
|||
class EventClient:
|
||||
def __init__(self,url):
|
||||
self.r = requests.get(url,stream=True)
|
||||
print("connected")
|
||||
if self.r.encoding is None:
|
||||
self.r.encoding = 'utf8'
|
||||
|
||||
|
|
Loading…
Reference in New Issue