Skip to content

Commit

Permalink
Allow slash in vhost name #37 (#38)
Browse files Browse the repository at this point in the history
* Allow slash in vhost name #37

* Fix lowercase in vhost slash encoding #37
  • Loading branch information
romainjanvier authored and Olivier Dolbeau committed Jul 5, 2018
1 parent 19f9962 commit 8844338
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Bab/RabbitMq/VhostManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ class VhostManager
public function __construct(array $credentials, Action $action, HttpClient $httpClient)
{
$this->credentials = $credentials;
if ('/' === $this->credentials['vhost']) {
$this->credentials['vhost'] = '%2f';
}

$this->credentials['vhost'] = str_replace('/', '%2f', $this->credentials['vhost']);
$this->action = $action;
$this->action->setVhost($this->credentials['vhost']);
$this->httpClient = $httpClient;
Expand Down

0 comments on commit 8844338

Please sign in to comment.