feat: add orcacloud to homepage (#16402)

* feat: add orcacloud to homepage

* feat: add OrcaCloud webview pane and session handoff from the app

* feat: OrcaCloud pane crash, per-open re-sign-in, and web-session persistence

* fix: clang-tidy
This commit is contained in:
Ian Chua
2026-10-15 01:01:25 +08:00
committed by GitHub
parent 1cbf97568d
commit 9ab0178dd0
14 changed files with 746 additions and 20 deletions
+8
View File
@@ -485,6 +485,14 @@ void Http::priv::http_perform()
if (!postfields.empty()) {
::curl_easy_setopt(curl, CURLOPT_POSTFIELDS, postfields.c_str());
::curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, postfields.size());
} else if (method == "POST" && form == nullptr && mime == nullptr) {
// A POST with no body. Without CURLOPT_POSTFIELDS, curl takes the request body from
// the read callback, but form_file_read_cb only has a usable user pointer for a PUT
// (set_put_body) or a streamed multipart part (form_add_file); for an empty POST it
// dereferences libcurl's default READDATA as a form_file and crashes. Point curl at a
// zero-length body so the read callback is never used.
::curl_easy_setopt(curl, CURLOPT_POSTFIELDS, postfields.c_str());
::curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, static_cast<curl_off_t>(0));
}
CURLcode res = ::curl_easy_perform(curl);