mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 10:24:26 +01:00
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
Block a user