add headers to requests for upload_to_remote node

This commit is contained in:
tzwm
2024-01-21 22:40:38 +08:00
parent 245c5bdb7f
commit 79223fe124
+5 -1
View File
@@ -80,8 +80,12 @@ class UploadToRemote:
data['track_id'] = track_id
if unique_id:
data['unique_id'] = unique_id
headers = {
"Content-Type": "application/json",
}
data = json.dumps(data).encode('utf-8')
res = requests.post(remote_url, data=data)
res = requests.post(remote_url, data=data, headers=headers)
# TODO: check the response