mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 02:25:56 +00:00
fix: Normalize URL to prevent double-slash in agent download. Related to #956
Strip trailing slashes from PULSE_URL to prevent URLs like http://host:7655//download/pulse-agent which incorrectly match the frontend route instead of the download endpoint.
This commit is contained in:
@@ -227,6 +227,13 @@ while [[ $# -gt 0 ]]; do
|
||||
esac
|
||||
done
|
||||
|
||||
# --- URL Normalization ---
|
||||
# Strip trailing slashes from PULSE_URL to prevent double-slash URLs
|
||||
# (e.g., http://host:7655//download/... which would match frontend routes)
|
||||
if [[ -n "$PULSE_URL" ]]; then
|
||||
PULSE_URL="${PULSE_URL%/}"
|
||||
fi
|
||||
|
||||
# --- Platform Auto-Detection ---
|
||||
# Only auto-detect if flags weren't explicitly set
|
||||
log_info "Detecting available platforms..."
|
||||
|
||||
Reference in New Issue
Block a user