Skip to content

Commit

Permalink
Prep for 0.4 release and minor housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
mbonneau committed Nov 4, 2021
1 parent d32c497 commit 31769d2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/phpunit.xml
/reports
/vendor/
/tests/autobahn/reports
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
class Connector {
protected $_loop;
protected $_connector;
protected $_secureConnector;
protected $_negotiator;

public function __construct(LoopInterface $loop = null, ConnectorInterface $connector = null) {
Expand Down Expand Up @@ -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]);
Expand Down
2 changes: 1 addition & 1 deletion tests/autobahn/runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 31769d2

Please sign in to comment.