From e92b115a42ce736600ef7eb6c7334a0891ab6c53 Mon Sep 17 00:00:00 2001 From: marcsello Date: Tue, 30 Nov 2021 20:09:00 +0100 Subject: [PATCH] fixed url --- src/sender/soundsender.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sender/soundsender.py b/src/sender/soundsender.py index cbb70c2..178e391 100644 --- a/src/sender/soundsender.py +++ b/src/sender/soundsender.py @@ -6,6 +6,7 @@ from datetime import datetime import requests from .abcsender import AbcSender from utils import config +from urllib.parse import urljoin """ Send a sound sample @@ -38,7 +39,7 @@ class SoundSender(AbcSender): "application/json") } - r = requests.post(config.API_URL + "/sample", files=files) + r = requests.post(urljoin(config.API_URL, "/input"), files=files) logging.debug(f"Content: {r.content.decode()}") logging.debug(f"Headers: {r.headers}") r.raise_for_status()