fixed url
This commit is contained in:
parent
78c9797e3d
commit
e92b115a42
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user