From bb94b7712fc3344802cb0d2c1d2a98fac21d9952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Fri, 27 Jun 2014 01:18:18 +0200 Subject: [PATCH] fixed post method --- application/core/Utils/WebReader.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/core/Utils/WebReader.php b/application/core/Utils/WebReader.php index e89b704c..8b22a9af 100644 --- a/application/core/Utils/WebReader.php +++ b/application/core/Utils/WebReader.php @@ -66,7 +66,8 @@ abstract class WebReader { $request->getOptions() ->set(CURLOPT_POST, true); // post method if ($content) { - $request->set(CURLOPT_POSTFIELDS, $content); // post content field + $request->getOptions() + ->set(CURLOPT_POSTFIELDS, $content); // post content field } $response = $request->send(); if (!is_null($function)) {