Skip to content

Commit

Permalink
Allow slash in vhost name odolbeau#37
Browse files Browse the repository at this point in the history
  • Loading branch information
romainjanvier committed Jun 21, 2018
1 parent 19f9962 commit 096381d
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 096381d

Please sign in to comment.