activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1483070 - /activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompWireFormat.cs
Date Wed, 15 May 2013 20:27:50 GMT
Author: tabish
Date: Wed May 15 20:27:49 2013
New Revision: 1483070

URL: http://svn.apache.org/r1483070
Log:
apply suggested fix for: https://issues.apache.org/jira/browse/AMQNET-411

Modified:
    activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompWireFormat.cs

Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompWireFormat.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompWireFormat.cs?rev=1483070&r1=1483069&r2=1483070&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompWireFormat.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompWireFormat.cs
Wed May 15 20:27:49 2013
@@ -20,6 +20,7 @@ using Apache.NMS.Util;
 using System;
 using System.IO;
 using System.Text;
+using System.Globalization;
 
 namespace Apache.NMS.Stomp.Protocol
 {
@@ -225,8 +226,8 @@ namespace Apache.NMS.Stomp.Protocol
 
             if(frame.HasProperty("version"))
             {
-                remoteWireFormatInfo.Version = Single.Parse(frame.RemoveProperty("version"));
-
+ 				remoteWireFormatInfo.Version = Single.Parse(frame.RemoveProperty("version"), 
+				                                            CultureInfo.InvariantCulture);
                 if(remoteWireFormatInfo.Version > 1.0f)
                 {
                     this.encodeHeaders = true;



Mime
View raw message