lib/curl/Request: require the caller to explicitly register the request

This allows constructing an instance in any thread, and register it
inside the IOThread later.
This commit is contained in:
Max Kellermann
2017-01-07 16:01:58 +01:00
parent 860aa9d6d0
commit 5163b1a624
3 changed files with 44 additions and 3 deletions

View File

@@ -373,6 +373,8 @@ CurlInputStream::InitEasy()
request_headers.Clear();
request_headers.Append("Icy-Metadata: 1");
request->SetOption(CURLOPT_HTTPHEADER, request_headers.Get());
request->Start();
}
void