mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 13:04:54 -04:00
UI: Add alternate constructor for RemoteTextThread
Allows specifying extra headers.
This commit is contained in:
1 parent
44834bbf04
commit
08e6dcd516
2 files changed
+18
No files matched your search
@@ -61,6 +61,9 @@ void RemoteTextThread::run()
|
||||
contentTypeString.c_str());
|
||||
}
|
||||
|
||||
for (std::string &h : extraHeaders)
|
||||
header = curl_slist_append(header, h.c_str());
|
||||
|
||||
curl_easy_setopt(curl.get(), CURLOPT_URL, url.c_str());
|
||||
curl_easy_setopt(curl.get(), CURLOPT_HTTPHEADER,
|
||||
header);
|
||||
|
||||
Reference in new issue
Block a user