mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 18:34:25 +01:00
Add http sent event client
This commit is contained in:
parent
7676f957c5
commit
bb70ce7057
@ -5,7 +5,6 @@ import json
|
|||||||
class EventClient:
|
class EventClient:
|
||||||
def __init__(self,url):
|
def __init__(self,url):
|
||||||
self.r = requests.get(url,stream=True)
|
self.r = requests.get(url,stream=True)
|
||||||
print("connected")
|
|
||||||
if self.r.encoding is None:
|
if self.r.encoding is None:
|
||||||
self.r.encoding = 'utf8'
|
self.r.encoding = 'utf8'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user