fix for: https://issues.apache.org/activemq/browse/AMQNET-277
diff --git a/src/main/csharp/Protocol/StompWireFormat.cs b/src/main/csharp/Protocol/StompWireFormat.cs
index b7c388a..879e0e1 100644
--- a/src/main/csharp/Protocol/StompWireFormat.cs
+++ b/src/main/csharp/Protocol/StompWireFormat.cs
@@ -217,6 +217,10 @@
// sent with response required set to true
frame.RemoveProperty("receipt");
+ // Clear any attached content length headers as they aren't needed anymore and can
+ // clutter the Message Properties.
+ frame.RemoveProperty("content-length");
+
message.Type = frame.RemoveProperty("type");
message.Destination = StompHelper.ToDestination(frame.RemoveProperty("destination"));
message.ReplyTo = StompHelper.ToDestination(frame.RemoveProperty("reply-to"));