From b20fe5c8c3a30d7660ac6e032640a11d84cf29a1 Mon Sep 17 00:00:00 2001 From: David Jardin Date: Tue, 12 Mar 2024 11:38:28 +0100 Subject: [PATCH] [2.x] Socket driver : default to 1.0 as protocol version (#54) * default to 1.0 as protocol version * fix pipleine * fix phpcs --- ruleset.xml | 3 --- src/Transport/Socket.php | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/ruleset.xml b/ruleset.xml index 62278898..92263bbc 100644 --- a/ruleset.xml +++ b/ruleset.xml @@ -19,8 +19,5 @@ - - - diff --git a/src/Transport/Socket.php b/src/Transport/Socket.php index cc935624..2955fba2 100644 --- a/src/Transport/Socket.php +++ b/src/Transport/Socket.php @@ -85,7 +85,7 @@ public function request($method, UriInterface $uri, $data = null, array $headers } // Configure protocol version, use transport's default if not set otherwise. - $protocolVersion = $this->getOption('protocolVersion', '1.1'); + $protocolVersion = $this->getOption('protocolVersion', '1.0'); // Build the request payload. $request = [];