face+management: Fixing incorrect condition for adding LocalControlHeader in Face::put
Change-Id: I228eeaafa9e6395798cefa763b1e81bacce9091c
refs: #1265
diff --git a/src/face.cpp b/src/face.cpp
index e362864..bc6d877 100644
--- a/src/face.cpp
+++ b/src/face.cpp
@@ -132,12 +132,12 @@
if (!data.getLocalControlHeader().empty(false, true))
{
- m_transport->send(data.wireEncode());
+ m_transport->send(data.getLocalControlHeader().wireEncode(data, false, true),
+ data.wireEncode());
}
else
{
- m_transport->send(data.getLocalControlHeader().wireEncode(data, false, true),
- data.wireEncode());
+ m_transport->send(data.wireEncode());
}
}