Skip to content

Commit

Permalink
[2.x] Socket driver : default to 1.0 as protocol version (#54)
Browse files Browse the repository at this point in the history
* default to 1.0 as protocol version

* fix pipleine

* fix phpcs
  • Loading branch information
SniperSister authored Mar 12, 2024
1 parent abcd087 commit b20fe5c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,5 @@
</rule>

<rule ref="Joomla.Classes.InstantiateNewClasses">
<properties>
<property name="shortArraySyntax" value="true"/>
</properties>
</rule>
</ruleset>
2 changes: 1 addition & 1 deletion src/Transport/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit b20fe5c

Please sign in to comment.