Line 0
Link Here
|
|
|
1 |
--- cpr/session.cpp.orig 2018-07-18 20:02:06 UTC |
2 |
+++ cpr/session.cpp |
3 |
@@ -350,7 +350,7 @@ Response Session::Impl::Patch() { |
4 |
Response Session::Impl::Post() { |
5 |
auto curl = curl_->handle; |
6 |
if (curl) { |
7 |
- curl_easy_setopt(curl, CURLOPT_HTTPGET, 0L); |
8 |
+ curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST"); |
9 |
curl_easy_setopt(curl, CURLOPT_NOBODY, 0L); |
10 |
} |
11 |
|