Sfoglia il codice sorgente

obs-webrtc: Follow HTTP redirects

aggresss 2 anni fa
parent
commit
34e57a0496
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      plugins/obs-webrtc/whip-output.cpp

+ 2 - 0
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_POST, 1L);
 	curl_easy_setopt(c, CURLOPT_COPYPOSTFIELDS, offer_sdp);
 	curl_easy_setopt(c, CURLOPT_COPYPOSTFIELDS, offer_sdp);
 	curl_easy_setopt(c, CURLOPT_TIMEOUT, 8L);
 	curl_easy_setopt(c, CURLOPT_TIMEOUT, 8L);
+	curl_easy_setopt(c, CURLOPT_FOLLOWLOCATION, 1L);
+	curl_easy_setopt(c, CURLOPT_UNRESTRICTED_AUTH, 1L);
 
 
 	auto cleanup = [&]() {
 	auto cleanup = [&]() {
 		curl_easy_cleanup(c);
 		curl_easy_cleanup(c);