This is an automated email from the ASF dual-hosted git repository. havret pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/activemq-nms-amqp.git
commit f16601cf55aec72b0b5159ec45010a2ab8031edd Author: Andreas Ländle <[email protected]> AuthorDate: Tue Apr 8 07:51:30 2025 +0000 Use String.IsNullOrWhiteSpace to also handle cases where VHost is a whitespace-only string. --- src/NMS.AMQP/Provider/Amqp/AmqpConnection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NMS.AMQP/Provider/Amqp/AmqpConnection.cs b/src/NMS.AMQP/Provider/Amqp/AmqpConnection.cs index 6ca101c..85c2edb 100644 --- a/src/NMS.AMQP/Provider/Amqp/AmqpConnection.cs +++ b/src/NMS.AMQP/Provider/Amqp/AmqpConnection.cs @@ -114,7 +114,7 @@ namespace Apache.NMS.AMQP.Provider.Amqp open.ContainerId = Info.ClientId; open.ChannelMax = Info.ChannelMax; open.MaxFrameSize = (uint) Info.MaxFrameSize; - open.HostName = String.IsNullOrEmpty(this.Provider.VHost) ? remoteUri.Host : this.Provider.VHost; + open.HostName = String.IsNullOrWhiteSpace(this.Provider.VHost) ? remoteUri.Host : this.Provider.VHost; open.IdleTimeOut = (uint) Info.IdleTimeOut; open.DesiredCapabilities = new[] { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information, visit: https://activemq.apache.org/contact
