Fix download_url hardcoded to port 8000 regardless of instance
Both /music/upload and /remix/{job_id} (fixed in the previous commit's
diff already for remix.py) built their download_url from a hardcoded
"http://91.234.52.134:8000" - meaning the dev instance (port 8001)
was handing back main's port for files it had actually produced. It
happened to still work, since both instances share the same physical
/root/antigrav-stax-audio/downloads directory, but it's semantically
wrong and would break the moment that's no longer true.
Found via the same real-browser Playwright pass as the previous fix -
the Tag & Identify panel's result audio player pointed at port 8000
while running against the port 8001 instance. Now derives the URL
from request.base_url instead, so it always reflects whichever host
actually served the request.
Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BCxXmJVvDFJVHTUi4QgNzi
Showing
Please
register
or
sign in
to comment