From 34e57a04968e969fd0a871acfc7665ff597ed1ff Mon Sep 17 00:00:00 2001 From: aggresss Date: Mon, 24 Jul 2023 16:20:06 +0800 Subject: [PATCH] obs-webrtc: Follow HTTP redirects --- plugins/obs-webrtc/whip-output.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/obs-webrtc/whip-output.cpp b/plugins/obs-webrtc/whip-output.cpp index 497b7d319..c9f999387 100644 --- a/plugins/obs-webrtc/whip-output.cpp +++ b/plugins/obs-webrtc/whip-output.cpp @@ -313,6 +313,8 @@ bool WHIPOutput::Connect() curl_easy_setopt(c, CURLOPT_POST, 1L); curl_easy_setopt(c, CURLOPT_COPYPOSTFIELDS, offer_sdp); curl_easy_setopt(c, CURLOPT_TIMEOUT, 8L); + curl_easy_setopt(c, CURLOPT_FOLLOWLOCATION, 1L); + curl_easy_setopt(c, CURLOPT_UNRESTRICTED_AUTH, 1L); auto cleanup = [&]() { curl_easy_cleanup(c);