fixed url

This commit is contained in:
Pünkösd Marcell 2021-11-30 20:09:00 +01:00
parent 78c9797e3d
commit e92b115a42

View File

@ -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()