From f371c7b35fc3b1158f0307c83ff5359703a4a888 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 23 Jun 2014 17:04:35 -0700 Subject: [PATCH] This 'host' thing is not going to end well. --- src/infrastructure/daemon/bot/PhabricatorBot.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/infrastructure/daemon/bot/PhabricatorBot.php b/src/infrastructure/daemon/bot/PhabricatorBot.php index a01b010e9d..6738b4592e 100644 --- a/src/infrastructure/daemon/bot/PhabricatorBot.php +++ b/src/infrastructure/daemon/bot/PhabricatorBot.php @@ -58,9 +58,9 @@ final class PhabricatorBot extends PhabricatorDaemon { // Normalize the path component of the URI so users can enter the // domain without the "/api/" part. $conduit_uri = new PhutilURI($conduit_uri); - $conduit_uri->setPath('/api/'); - $conduit_host = $conduit_uri->getDomain(); - $conduit_uri = (string)$conduit_uri; + + $conduit_host = (string)$conduit_uri->setPath('/'); + $conduit_uri = (string)$conduit_uri->setPath('/api/'); $conduit = new ConduitClient($conduit_uri); $response = $conduit->callMethodSynchronous(