mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-03 16:25:31 +00:00
Fail on HTTP error
This commit is contained in:
parent
5263607ec8
commit
09461caaf9
@ -56,6 +56,7 @@ void http_init() {
|
||||
curl_easy_setopt(curl, CURLOPT_SSLKEY, pKeyFile);
|
||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, _write_curl);
|
||||
curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1L);
|
||||
}
|
||||
|
||||
int http_request(char* url, struct http_data* data) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user