mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-29 05:38:24 +00:00
RequestServer: Don't return unused bool when setting curl options
This commit is contained in:
parent
da351ac468
commit
ed57d2de98
Notes:
github-actions[bot]
2025-08-13 14:31:25 +00:00
Author: https://github.com/gmta
Commit: ed57d2de98
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5841
Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 1 additions and 4 deletions
|
@ -500,11 +500,8 @@ void ConnectionFromClient::start_request(i32 request_id, ByteString method, URL:
|
||||||
|
|
||||||
auto set_option = [easy](auto option, auto value) {
|
auto set_option = [easy](auto option, auto value) {
|
||||||
auto result = curl_easy_setopt(easy, option, value);
|
auto result = curl_easy_setopt(easy, option, value);
|
||||||
if (result != CURLE_OK) {
|
if (result != CURLE_OK)
|
||||||
dbgln("StartRequest: Failed to set curl option: {}", curl_easy_strerror(result));
|
dbgln("StartRequest: Failed to set curl option: {}", curl_easy_strerror(result));
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
set_option(CURLOPT_PRIVATE, request.ptr());
|
set_option(CURLOPT_PRIVATE, request.ptr());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue