ports/www/cpr/files/patch-cpr_session.cpp
Yuri Victorovich af28466512 New port: www/cpr: Curl for people, a simple wrapper around libcurl
PR:		229962
Submitted by:	Maxim Filimonov <che@bein.link>
2018-07-31 03:55:19 +00:00

11 lines
386 B
C++

--- cpr/session.cpp.orig 2018-07-18 20:02:06 UTC
+++ cpr/session.cpp
@@ -350,7 +350,7 @@ Response Session::Impl::Patch() {
Response Session::Impl::Post() {
auto curl = curl_->handle;
if (curl) {
- curl_easy_setopt(curl, CURLOPT_HTTPGET, 0L);
+ curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(curl, CURLOPT_NOBODY, 0L);
}