ithewei 6 년 전
부모
커밋
e53dc00fd4
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      http/client/http_client.cpp

+ 1 - 0
http/client/http_client.cpp

@@ -125,6 +125,7 @@ int http_client_send(HttpRequest* req, HttpResponse* res, int timeout) {
     }
     if (req->body.size() != 0) {
         curl_easy_setopt(handle, CURLOPT_POSTFIELDS, req->body.c_str());
+        curl_easy_setopt(handle, CURLOPT_POSTFIELDSIZE, req->body.size());
     }
 
     if (timeout > 0) {