vaste http eruit gehaald, cross fingers
This commit is contained in:
parent
7678c358ef
commit
fdb87ece2f
|
@ -57,7 +57,7 @@ def get_network_troughput():
|
|||
|
||||
|
||||
def post_json(blob, ma, mp):
|
||||
r = requests.post(f'http://{ma}:{mp}/api/v1/host/post', json=blob)
|
||||
r = requests.post(f'{ma}:{mp}/api/v1/host/post', json=blob)
|
||||
if r.status_code != 200:
|
||||
print(f'Error posting, got HTTP status code {r.status_code}, exiting with code 1!')
|
||||
exit(1)
|
||||
|
|
Reference in New Issue