From: Philipp Date: Wed, 25 Aug 2021 19:23:46 +0000 (+0200) Subject: Fix HTTPRequestOptions at HTTPClient::post() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2054a787da1848e1e5e3100702accff856f08688;p=friendica.git Fix HTTPRequestOptions at HTTPClient::post() --- diff --git a/src/Network/HTTPClient.php b/src/Network/HTTPClient.php index e982d19afc..44f7f7974c 100644 --- a/src/Network/HTTPClient.php +++ b/src/Network/HTTPClient.php @@ -185,14 +185,14 @@ class HTTPClient implements IHTTPClient { $opts = []; - $opts[RequestOptions::BODY] = $params; + $opts[HTTPRequestOptions::BODY] = $params; if (!empty($headers)) { - $opts[RequestOptions::HEADERS] = $headers; + $opts[HTTPRequestOptions::HEADERS] = $headers; } if (!empty($timeout)) { - $opts[RequestOptions::TIMEOUT] = $timeout; + $opts[HTTPRequestOptions::TIMEOUT] = $timeout; } return $this->request('post', $url, $opts);