From 31769d2a78d65b4b774caf4806f70f33bfef8712 Mon Sep 17 00:00:00 2001 From: Matt Bonneau Date: Thu, 4 Nov 2021 10:42:40 -0400 Subject: [PATCH] Prep for 0.4 release and minor housekeeping --- .gitignore | 1 + LICENSE | 2 +- src/Connector.php | 3 +-- tests/autobahn/runner.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 72ef049..c14157a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /phpunit.xml /reports /vendor/ +/tests/autobahn/reports diff --git a/LICENSE b/LICENSE index 5e5d744..0dcb11f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2015 Chris Boden +Copyright (c) 2021 Chris Boden Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/Connector.php b/src/Connector.php index 8fd0519..b407d2f 100644 --- a/src/Connector.php +++ b/src/Connector.php @@ -13,7 +13,6 @@ class Connector { protected $_loop; protected $_connector; - protected $_secureConnector; protected $_negotiator; public function __construct(LoopInterface $loop = null, ConnectorInterface $connector = null) { @@ -135,7 +134,7 @@ protected function generateRequest($url, array $subProtocols, array $headers) { $uri = $uri->withScheme('wss' === $scheme ? 'HTTPS' : 'HTTP'); - $headers += ['User-Agent' => 'Ratchet-Pawl/0.3']; + $headers += ['User-Agent' => 'Ratchet-Pawl/0.4']; $request = array_reduce(array_keys($headers), function(RequestInterface $request, $header) use ($headers) { return $request->withHeader($header, $headers[$header]); diff --git a/tests/autobahn/runner.php b/tests/autobahn/runner.php index f4f9cb4..cebf79b 100644 --- a/tests/autobahn/runner.php +++ b/tests/autobahn/runner.php @@ -4,7 +4,7 @@ require __DIR__ . '/../../vendor/autoload.php'; - define('AGENT', 'Pawl/0.3'); + define('AGENT', 'Pawl/0.4'); $connFactory = function() { $connector = new Ratchet\Client\Connector();