From 4d9abfc1f2cc28c7fd306352bff3caadb5963075 Mon Sep 17 00:00:00 2001 From: gggeek Date: Thu, 26 May 2022 11:33:55 +0000 Subject: [PATCH] nitpick --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 6c4bc8eb..388d481e 100644 --- a/src/Client.php +++ b/src/Client.php @@ -516,7 +516,7 @@ class Client /// @todo we could be smarter about this and force usage of curl in scenarios where it is both available and /// needed, such as digest or ntlm auth. Do not attempt to use it for https if not present $useCurl = ($this->use_curl == self::USE_CURL_ALWAYS) || ($this->use_curl == self::USE_CURL_AUTO && - ($method == 'https' || $method == 'http11' || $method == 'http2' || $method == 'http2tls')); + (in_array($method, array('https', 'http11', 'http2', 'http2tls')))); if ($useCurl) { $r = $this->sendPayloadCURL( -- 2.47.0