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