From fb160646b8af3815751010cdaee3277213970875 Mon Sep 17 00:00:00 2001 From: Filipi Fuchter Date: Wed, 1 Oct 2025 14:18:39 -0300 Subject: [PATCH] Fixing the SDP munging to keep it working on Chrome. --- src/pipecat/runner/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipecat/runner/utils.py b/src/pipecat/runner/utils.py index 530854050..3466e9a6d 100644 --- a/src/pipecat/runner/utils.py +++ b/src/pipecat/runner/utils.py @@ -310,7 +310,7 @@ def _smallwebrtc_sdp_cleanup_ice_candidates(text: str, pattern: str) -> str: result.append(line) else: result.append(line) - return "\r\n".join(result) + return "\r\n".join(result) + "\r\n" def _smallwebrtc_sdp_cleanup_fingerprints(text: str) -> str: @@ -328,7 +328,7 @@ def _smallwebrtc_sdp_cleanup_fingerprints(text: str) -> str: for line in lines: if not re.search("sha-384", line) and not re.search("sha-512", line): result.append(line) - return "\r\n".join(result) + return "\r\n".join(result) + "\r\n" def smallwebrtc_sdp_munging(sdp: str, host: Optional[str]) -> str: