From 5a8f948a160c878881b683ecfeb8e36ce16afb35 Mon Sep 17 00:00:00 2001 From: wangyong9999 <81852543+wangyong9999@users.noreply.github.com> Date: Sat, 22 Aug 2026 02:27:59 -0400 Subject: [PATCH] fix(rest): support libcurl versions before 7.49 --- src/paimon/rest/rest_http_client.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/paimon/rest/rest_http_client.cpp b/src/paimon/rest/rest_http_client.cpp index b17b0a28..52e6417e 100644 --- a/src/paimon/rest/rest_http_client.cpp +++ b/src/paimon/rest/rest_http_client.cpp @@ -123,7 +123,9 @@ bool IsRetriableTransportError(CURLcode code) { case CURLE_RECV_ERROR: case CURLE_PARTIAL_FILE: case CURLE_HTTP2: +#if CURL_AT_LEAST_VERSION(7, 49, 0) case CURLE_HTTP2_STREAM: +#endif return true; default: return false;