commit | 2d6471768897e88358cee945d9b6838842fcb0b0 | [log] [tgz] |
---|---|---|
author | Sean Condon <sean.condon@microsemi.com> | Tue Sep 19 12:29:13 2017 +0100 |
committer | Thomas Vachuska <tom@opennetworking.org> | Wed Sep 20 08:08:42 2017 +0000 |
tree | 07fc64275668ffc15524d91829254f16cd45349f | |
parent | 554ce97fd7333df109757e4ecf0c2816015f838e [diff] [blame] |
Bugfix for NETCONF 1.1 where XML header was entered twice Change-Id: Id8c9fa2ba71ea746637c691488c8811746506fce
diff --git a/protocols/netconf/ctl/src/main/java/org/onosproject/netconf/ctl/impl/NetconfSessionMinaImpl.java b/protocols/netconf/ctl/src/main/java/org/onosproject/netconf/ctl/impl/NetconfSessionMinaImpl.java index dfb82ca..99f79cd 100644 --- a/protocols/netconf/ctl/src/main/java/org/onosproject/netconf/ctl/impl/NetconfSessionMinaImpl.java +++ b/protocols/netconf/ctl/src/main/java/org/onosproject/netconf/ctl/impl/NetconfSessionMinaImpl.java
@@ -578,7 +578,7 @@ * @return XML RPC message */ private String formatXmlHeader(String request) { - if (!request.startsWith(XML_HEADER)) { + if (!request.contains(XML_HEADER)) { //FIXME if application provides his own XML header of different type there is a clash if (request.startsWith(LF + HASH)) { request = request.split("<")[0] + XML_HEADER + request.substring(request.split("<")[0].length());