From 841802f6c76a4c9bfd145a209cbb5574da5f6364 Mon Sep 17 00:00:00 2001 From: knight <941122922@qq.com> Date: Fri, 19 Sep 2025 16:51:13 +0800 Subject: [PATCH] fix:remove redundant query params from WebRTC URL The original URL repeated uuid and channel in both the path and the query string. The backend route only uses the path variables; the query string is unused and only adds length and log noise. --- web/templates/play_webrtc.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/templates/play_webrtc.tmpl b/web/templates/play_webrtc.tmpl index c8d98faa..0939ce6d 100644 --- a/web/templates/play_webrtc.tmpl +++ b/web/templates/play_webrtc.tmpl @@ -58,7 +58,7 @@ case 'have-local-offer': let uuid = $('#uuid').val(); let channel = $('#channel').val(); - let url = "/stream/" + uuid + "/channel/" + channel + "/webrtc?uuid=" + uuid + '&channel=' + channel; + let url = "/stream/" + uuid + "/channel/" + channel + "/webrtc"; $.post(url, { data: btoa(webrtc.localDescription.sdp) }, function(data) {