1
1
Fork 0

Fixing post()

This commit is contained in:
nupplaPhil 2020-03-04 22:20:50 +01:00 committed by Hypolite Petovan
parent 1aa07f87a4
commit cebdcb6599

View 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);