Skip to content

Commit 89e7b47

Browse files
authored
Update script.class.php
1 parent f031646 commit 89e7b47

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

core/class/script.class.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,6 @@ public function execute($_options = null) {
200200
if ($this->getConfiguration('doNotReportHttpError') == 1) {
201201
$request_http->setNoReportError(true);
202202
}
203-
if ($this->getType() == 'action' && trim($request) != '') {
204-
$request_http->setPost($request);
205-
}
206203
if (isset($_options['speedAndNoErrorReport']) && $_options['speedAndNoErrorReport'] == true) {
207204
$request_http->setNoReportError(true);
208205
$request_http->exec(0.1, 1);
@@ -264,9 +261,6 @@ public function execute($_options = null) {
264261
if ($this->getConfiguration('xmlNoSslCheck') == 1) {
265262
$request_http->setNoSslCheck(true);
266263
}
267-
if ($this->getType() == 'action' && trim($request) != '') {
268-
$request_http->setPost($request);
269-
}
270264
$xml = trim($request_http->exec($this->getConfiguration('xmlTimeout', 2), $this->getConfiguration('maxXmlRetry', 3)));
271265
if ($this->getType() == 'action') {
272266
return;
@@ -310,9 +304,6 @@ public function execute($_options = null) {
310304
if ($this->getConfiguration('jsonNoSslCheck') == 1) {
311305
$request_http->setNoSslCheck(true);
312306
}
313-
if ($this->getType() == 'action' && trim($request) != '') {
314-
$request_http->setPost($request);
315-
}
316307
$json_str = trim($request_http->exec($this->getConfiguration('jsonTimeout', 2), $this->getConfiguration('maxJsonRetry', 3)));
317308
if ($this->getType() == 'action') {
318309
return;
@@ -391,9 +382,6 @@ public function execute($_options = null) {
391382
if ($this->getConfiguration('htmlNoSslCheck') == 1) {
392383
$request_http->setNoSslCheck(true);
393384
}
394-
if ($this->getType() == 'action' && trim($request) != '') {
395-
$request_http->setPost($request);
396-
}
397385
$html = $request_http->exec($this->getConfiguration('htmlTimeout', 2), $this->getConfiguration('maxHtmlRetry', 3));
398386
if ($this->getType() == 'action') {
399387
return;

0 commit comments

Comments
 (0)