summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-02-12 10:52:55 +0000
committerGordon Sim <gsim@apache.org>2007-02-12 10:52:55 +0000
commit80402d895157dc5907e8fc84fa67378182cefc39 (patch)
treeca6b3ded8048f2f53b03f4be2683eb413853926c
parent1ddbee45e8059e1eb64d94526a6abb8e396643ac (diff)
downloadqpid-python-80402d895157dc5907e8fc84fa67378182cefc39.tar.gz
Changed default virtual host to "" (was "/").
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@506409 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--cpp/lib/client/Connection.h2
-rw-r--r--cpp/tests/FramingTest.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/lib/client/Connection.h b/cpp/lib/client/Connection.h
index 57286092af..2f9b35d5ef 100644
--- a/cpp/lib/client/Connection.h
+++ b/cpp/lib/client/Connection.h
@@ -145,7 +145,7 @@ class Connection : public ConnectionForChannel
void open(const std::string& host, int port = 5672,
const std::string& uid = "guest",
const std::string& pwd = "guest",
- const std::string& virtualhost = "/");
+ const std::string& virtualhost = "");
/**
* Close the connection with optional error information for the peer.
diff --git a/cpp/tests/FramingTest.cpp b/cpp/tests/FramingTest.cpp
index f8754337c8..406241d2c9 100644
--- a/cpp/tests/FramingTest.cpp
+++ b/cpp/tests/FramingTest.cpp
@@ -359,7 +359,7 @@ class FramingTest : public CppUnit::TestCase
ASSERT_FRAME("CLIENT: Frame[channel=0; response(id=1,request=1,batch=0): ConnectionStartOk: clientProperties={}; mechanism=PLAIN; response=\000guest\000guest; locale=en_US]", *i++);
ASSERT_FRAME("BROKER: Frame[channel=0; request(id=2,mark=1): ConnectionTune: channelMax=100; frameMax=65536; heartbeat=0]", *i++);
ASSERT_FRAME("CLIENT: Frame[channel=0; response(id=2,request=2,batch=0): ConnectionTuneOk: channelMax=100; frameMax=65536; heartbeat=0]", *i++);
- ASSERT_FRAME("CLIENT: Frame[channel=0; request(id=1,mark=0): ConnectionOpen: virtualHost=/; capabilities=; insist=1]", *i++);
+ ASSERT_FRAME("CLIENT: Frame[channel=0; request(id=1,mark=0): ConnectionOpen: virtualHost=; capabilities=; insist=1]", *i++);
ASSERT_FRAME("BROKER: Frame[channel=0; response(id=1,request=1,batch=0): ConnectionOpenOk: knownHosts=]", *i++);
ASSERT_FRAME("CLIENT: Frame[channel=1; request(id=1,mark=0): ChannelOpen: outOfBand=]", *i++);
ASSERT_FRAME("BROKER: Frame[channel=1; response(id=1,request=1,batch=0): ChannelOpenOk: channelId=]", *i++);