aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhor911 <hor911@ydb.tech>2023-04-26 14:04:37 +0300
committerhor911 <hor911@ydb.tech>2023-04-26 14:04:37 +0300
commit515d9f94063f8a5ca9a676ea37562c595bf16a48 (patch)
treefcc338abf081a341b21e64a1b829733e50fdebf4
parented058cefb2cdc6ce20f6ef2e91d61e8829715ddc (diff)
downloadydb-515d9f94063f8a5ca9a676ea37562c595bf16a48.tar.gz
HTTP PUT Content-Length
-rw-r--r--ydb/library/yql/providers/common/http_gateway/yql_http_gateway.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ydb/library/yql/providers/common/http_gateway/yql_http_gateway.cpp b/ydb/library/yql/providers/common/http_gateway/yql_http_gateway.cpp
index 2860d5ce3e..773e4cc882 100644
--- a/ydb/library/yql/providers/common/http_gateway/yql_http_gateway.cpp
+++ b/ydb/library/yql/providers/common/http_gateway/yql_http_gateway.cpp
@@ -183,9 +183,10 @@ public:
curl_easy_setopt(Handle, CURLOPT_WRITEFUNCTION, &WriteMemoryCallback);
curl_easy_setopt(Handle, CURLOPT_WRITEDATA, static_cast<void*>(this));
- if (EMethod::PUT == Method) {
+ if (Method == EMethod::PUT) {
curl_easy_setopt(Handle, CURLOPT_HEADERFUNCTION, &WriteHeaderCallback);
curl_easy_setopt(Handle, CURLOPT_HEADERDATA, static_cast<void*>(this));
+ curl_easy_setopt(Handle, CURLOPT_INFILESIZE_LARGE, BodySize);
}
if (Method == EMethod::POST) {