opnsense-ports/www/cpr/files/patch-cpr_session.cpp
Franco Fichtner 39329c8054 */*: sync with upstream
Taken from: HardenedBSD
2018-07-31 05:06:20 +02: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);
}