]> git.mxchange.org Git - friendica.git/commitdiff
Fixing post()
authornupplaPhil <admin+github@philipp.info>
Wed, 4 Mar 2020 21:20:50 +0000 (22:20 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 21 Jul 2020 07:04:58 +0000 (03:04 -0400)
src/Network/HTTPRequest.php

index eaef6966d73035612e0c036f55ac697df4a9b523..ac2d70cad27621bfd27fac65c2b4fd045b3e7d0b 100644 (file)
@@ -248,7 +248,7 @@ class HTTPRequest
                curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                curl_setopt($ch, CURLOPT_POST, 1);
                curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
-               curl_setopt($ch, CURLOPT_USERAGENT, $a->getUserAgent());
+               curl_setopt($ch, CURLOPT_USERAGENT, $this->userAgent);
 
                if ($this->config->get('system', 'ipv4_resolve', false)) {
                        curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);