Merge branch 'main' into home-routed

This commit is contained in:
Sukchan Lee
2025-06-30 10:02:57 +09:00
14 changed files with 641 additions and 39 deletions

View File

@@ -161,7 +161,7 @@ ogs_sbi_client_t *ogs_sbi_client_add(
curl_multi_setopt(multi, CURLMOPT_SOCKETDATA, client);
curl_multi_setopt(multi, CURLMOPT_TIMERFUNCTION, multi_timer_cb);
curl_multi_setopt(multi, CURLMOPT_TIMERDATA, client);
#ifdef CURLMOPT_MAX_CONCURRENT_STREAMS
#if CURL_AT_LEAST_VERSION(7,67,0)
curl_multi_setopt(multi, CURLMOPT_MAX_CONCURRENT_STREAMS,
ogs_app()->pool.stream);
#endif

View File

@@ -3210,6 +3210,11 @@ static int parse_multipart(
ogs_assert(message);
ogs_assert(http);
if (!http->content) {
ogs_error("HTTP content NULL [%d]", (int)http->content_length);
return OGS_ERROR;
}
memset(&settings, 0, sizeof(settings));
settings.on_header_field = &on_header_field;
settings.on_header_value = &on_header_value;